diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-12 20:25:27 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-14 15:53:43 -0800 |
commit | 260968beacb1a2e1c6bdd652f75fe087f907ce0f (patch) | |
tree | 6f9da93f5136fc15dc0ad4c8fd1998edb8888081 /hash.h | |
parent | ed290d6d0df5f4c694459f853983ab79929ea786 (diff) | |
download | txr-260968beacb1a2e1c6bdd652f75fe087f907ce0f.tar.gz txr-260968beacb1a2e1c6bdd652f75fe087f907ce0f.tar.bz2 txr-260968beacb1a2e1c6bdd652f75fe087f907ce0f.zip |
* eval.c (eval_init): Register hash_guni and hash_gisec as intrinsics.
* hash.c (hash_guni, hash_gisec): New functions.
(hash_isec): Bugfix: since gethash was naively used, keys in hash2
associated with the value nil were erroneously omitted from the
intersection.
* hash.h (hash_guni, hash_gisec): Declared.
* txr.1: Documented new functions.
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -54,8 +54,10 @@ val hash_values(val hash); val hash_pairs(val hash); val hash_alist(val hash); val hash_uni(val hash1, val hash2); +val hash_guni(val hash1, val hash2); val hash_diff(val hash1, val hash2); val hash_isec(val hash1, val hash2); +val hash_gisec(val hash1, val hash2); val hash_update(val hash, val fun); void hash_process_weak(void); |