diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-06-24 06:04:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-06-24 06:04:43 -0700 |
commit | 5a1a9076e10d03a070daa0e8c019fc0ec76e5c88 (patch) | |
tree | a57fb2920b46506fd80130a798e59389f8ea9ee5 /eval.c | |
parent | 2f654aa0a794581bb857c38e99e0abb185c53d52 (diff) | |
download | txr-5a1a9076e10d03a070daa0e8c019fc0ec76e5c88.tar.gz txr-5a1a9076e10d03a070daa0e8c019fc0ec76e5c88.tar.bz2 txr-5a1a9076e10d03a070daa0e8c019fc0ec76e5c88.zip |
* hash.c (hash_from_pairs, hash_list): New functions.
* hash.h (hash_from_pairs, hash_list): Declared.
* eval.c (eval_init): Registered hash-from-pairs and hash-list
intrinsic.
* txr.1: Documented new functions.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4251,6 +4251,8 @@ void eval_init(void) reg_fun(intern(lit("copy-hash"), user_package), func_n1(copy_hash)); reg_fun(intern(lit("hash"), user_package), func_n0v(hashv)); reg_fun(intern(lit("hash-construct"), user_package), func_n2(hash_construct)); + reg_fun(intern(lit("hash-from-pairs"), user_package), func_n1v(hash_from_pairs)); + reg_fun(intern(lit("hash-list"), user_package), func_n1v(hash_list)); reg_fun(gethash_s, func_n3o(gethash_n, 2)); reg_fun(intern(lit("inhash"), user_package), func_n3o(inhash, 2)); reg_fun(intern(lit("sethash"), user_package), func_n3(sethash)); |