summaryrefslogtreecommitdiffstats
path: root/stdlib/doc-syms.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-06-28 20:35:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-06-28 20:35:28 -0700
commit8ee92a458a4b854b4a7e726975c1197be877c500 (patch)
treee864efd0fb99485c6c0891098854f8d64fc35603 /stdlib/doc-syms.tl
parent59478a2944d8f9a06a8481bd2f746ffd7dd764c7 (diff)
downloadtxr-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 'stdlib/doc-syms.tl')
-rw-r--r--stdlib/doc-syms.tl1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl
index a46abbd0..4d4ee04d 100644
--- a/stdlib/doc-syms.tl
+++ b/stdlib/doc-syms.tl
@@ -952,6 +952,7 @@
("hash-keys" "N-00C9B125")
("hash-keys-of" "N-02FBE776")
("hash-list" "N-02EE9235")
+ ("hash-map" "N-027671E9")
("hash-next" "N-0225209D")
("hash-pairs" "N-00C9B125")
("hash-peek" "N-0225209D")