diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-17 07:36:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-17 07:36:28 -0700 |
commit | e6dcc43d8bd7abd55de302d2599ce564ea2c9d78 (patch) | |
tree | 26843d2e8234d26cf9b3c1a01ae534a1d784a1c5 /txr.1 | |
parent | 81c97fcb7736ee17d581d6c78af567e2f7d25ca0 (diff) | |
download | txr-e6dcc43d8bd7abd55de302d2599ce564ea2c9d78.tar.gz txr-e6dcc43d8bd7abd55de302d2599ce564ea2c9d78.tar.bz2 txr-e6dcc43d8bd7abd55de302d2599ce564ea2c9d78.zip |
New function: hash-zip.
* hash.c (hash_zip): New function.
(hash_init): hash-zip intrinsic registered.
* hash.h (hash_zip): Declared.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -43691,6 +43691,36 @@ and returned. The value associated with each key is that key itself. +.coNP Function @ hash-zip +.synb +.mets (hash-zip < key-seq < value-seq << hash-arg *) +.syne +.desc +The +.code hash-zip +function constructs a hash as if by a call to +.mono +.meti (apply hash << hash-args ), +.onom +where +.meta hash-args +is a list of the individual +.meta hash-arg +variadic arguments. + +The hash is then populated with keys taken from +.meta key-seq +which are paired with values taken from from +.metn value-seq , +and returned. + +If +.meta key-seq +is longer than +.metn value-seq , +then the excess keys are ignored, and +.IR "vice versa" . + .coNP Function @ hash-update .synb .mets (hash-update < hash << function ) |