From 5f4aa66d155e8324663c421b0f3b51ced11bb796 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 22 Sep 2023 14:41:36 -0700 Subject: doc: fix wording problem in hash-map. * txr.1: Fix hash-map being described as constructing a function. It returns a hash table. Revise wording. --- txr.1 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/txr.1 b/txr.1 index fdc993e7..42158a50 100644 --- a/txr.1 +++ b/txr.1 @@ -56322,20 +56322,24 @@ its properties, such as weakness. .coNP Function @ hash-map .synb -.mets (hash-map < fun < sequence << hash-arg *) +.mets (hash-map < function < sequence << hash-arg *) .syne .desc The .code hash-map -function constructs a function out of a -.metn sequence . +function constructs a a hash table from a +.meta sequence +of keys and a +.meta function +which maps them to values. + The -.meta fun +.meta function argument must be a function that can be called with one argument. The elements of .meta sequence -become the hash keys. The value associated with each key +become the keys of the returned hash table. The value associated with each key is determined by passing that value to function .meta fun and taking the returned value. -- cgit v1.2.3