diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-06-28 20:35:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-06-28 20:35:28 -0700 |
commit | 8ee92a458a4b854b4a7e726975c1197be877c500 (patch) | |
tree | e864efd0fb99485c6c0891098854f8d64fc35603 /tests/012/callable.tl | |
parent | 59478a2944d8f9a06a8481bd2f746ffd7dd764c7 (diff) | |
download | txr-8ee92a458a4b854b4a7e726975c1197be877c500.tar.gz txr-8ee92a458a4b854b4a7e726975c1197be877c500.tar.bz2 txr-8ee92a458a4b854b4a7e726975c1197be877c500.zip |
New function: hash-map.
hash-map converts a function mapping over a sequence
into a hash table.
* hash.[ch] (hash_map): New function.
* tests/010/hash.tl: Test case.
* genman.txr: The hash-map identifier introduces
a hash collision. We have to deal with that somehow now.
(colli): We put the conflicting entries into a new hash called
colli which maps them to an increment value.
(hash-title): Increment the hash code h by the amount
indicated in colli, if the title is found there.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'tests/012/callable.tl')
0 files changed, 0 insertions, 0 deletions