Add some hash functions

svn: r15642
This commit is contained in:
Sam Tobin-Hochstadt 2009-07-30 19:30:05 +00:00
parent 6c86f7e305
commit 7888fa5dc6

View File

@ -488,6 +488,17 @@
(cl-> [((-HT a b) a) b]
[((-HT a b) a (-> c)) (Un b c)]
[((-HT a b) a c) (Un b c)]))]
[hash-ref! (-poly (a b c)
(cl-> [((-HT a b) a (-> b)) b]
[((-HT a b) a b) b]))]
[hash-iterate-first (-poly (a b)
((-HT a b) . -> . (Un (-val #f) -Integer)))]
[hash-iterate-next (-poly (a b)
((-HT a b) -Integer . -> . (Un (-val #f) -Integer)))]
[hash-iterate-key (-poly (a b)
((-HT a b) -Integer . -> . a))]
[hash-iterate-value (-poly (a b)
((-HT a b) -Integer . -> . b))]
#;[hash-table-index (-poly (a b) ((-HT a b) a b . -> . -Void))]
[bytes (->* (list) N -Bytes)]