add hash-count for native tables
authorDaniel Hartwig <mandyke@gmail.com>
Sun, 17 Feb 2013 08:38:31 +0000 (16:38 +0800)
committerDaniel Hartwig <mandyke@gmail.com>
Mon, 18 Feb 2013 02:21:43 +0000 (10:21 +0800)
commit3330f00f54649cdd0914b6ff03c7b7bbc38ffa8d
tree300aa688b6c2a940e0cfdf05f7829321709288dd
parent3d2b2676e3fc0a5b243b8a4188d07bba1b4b40a4
add hash-count for native tables

* libguile/hashtab.c (scm_hash_count): New function.  Count the number
  of elements in a hash table.

* doc/ref/api-compound.texi (Hash Tables): Update examples and
  reference.

* test-suite/tests/hash.test (hash-count): New test.
doc/ref/api-compound.texi
libguile/hashtab.c
libguile/hashtab.h
test-suite/tests/hash.test