summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-03-12 07:02:10 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-03-12 07:02:10 -0700
commit4207023bf29255b8d2bc02b775caec556462c754 (patch)
treef54e36294e81b3af19b7c7b7fe45819382abbd29 /txr.1
parentcbc0bbb556f281b219ddbc9a6728afc71fbeaca3 (diff)
downloadtxr-4207023bf29255b8d2bc02b775caec556462c754.tar.gz
txr-4207023bf29255b8d2bc02b775caec556462c754.tar.bz2
txr-4207023bf29255b8d2bc02b775caec556462c754.zip
where: convert to lazy.
* lib.c (lazy_where_func, lazy_where_hash_func): New static functions. (where): Rewritten to generate lazy list. * txr.1: Doc updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.15
1 files changed, 3 insertions, 2 deletions
diff --git a/txr.1 b/txr.1
index 89f6c32e..89f4aeb8 100644
--- a/txr.1
+++ b/txr.1
@@ -27950,7 +27950,7 @@ If
is a sequence, the
.code where
function returns
-a list of the numeric indices of those of its elements which satisfy
+a lazy list of the numeric indices of those of its elements which satisfy
.metn function .
The numeric indices appear in increasing order.
@@ -27958,9 +27958,10 @@ If
.meta object
is a hash, the
.code where
-function returns an unordered list
+function returns a lazy list of
of keys which have values which satisfy
.metn function .
+These keys are not subject to an order.
.meta function
must be a function that can be called with one argument.