[racket] empty hash tables
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
while browsing both guide[1] and reference[2] for a `hash-empty?'
procedure I turned up with empty hands, although a few possibilities for
implementing it did come to mind, like using `hash-count' and comparing
to zero or, using `hash-iterate-first' which returns #f for empty hashes
but otherwise returns an integer which is an index to the first element
in the hash table (which sounds like hash tables are implemented using
arrays and an index to the underlying array is returned).
Marijn
PS Note how hash table is spelled differently in below URLs
[1]:http://docs.racket-lang.org/guide/hash-tables.html
[2]:http://docs.racket-lang.org/reference/hashtables.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3jTYgACgkQp/VmCx0OL2xlrQCeNACTfhRe3wcbeOVb2X4oGzqN
/OIAn1fGOd/igVsZ2iXCjAKbt+c/xMPT
=EIpC
-----END PGP SIGNATURE-----