diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-03-12 07:02:10 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-03-12 07:02:10 -0700 |
commit | 4207023bf29255b8d2bc02b775caec556462c754 (patch) | |
tree | f54e36294e81b3af19b7c7b7fe45819382abbd29 /txr.1 | |
parent | cbc0bbb556f281b219ddbc9a6728afc71fbeaca3 (diff) | |
download | txr-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.1 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. |