summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-08 07:36:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-08 07:36:25 -0700
commit2c2fe9fc598e6677e9b16372b65c477c5ba6d03b (patch)
tree590c017d9ac8650ccb05f979be0bc06a7f031d8b /txr.1
parentfa3c90eb3ac48abd8bb9065884fe15523a864766 (diff)
downloadtxr-2c2fe9fc598e6677e9b16372b65c477c5ba6d03b.tar.gz
txr-2c2fe9fc598e6677e9b16372b65c477c5ba6d03b.tar.bz2
txr-2c2fe9fc598e6677e9b16372b65c477c5ba6d03b.zip
list_seq: return lazy list, not eager.
* lib.c (list_seq_func): New static function. (list_seq): Convert to lazy processing. The iterator is threaded through the lazy cons's car field, so we don't have to mutate the function's environment. * txr.1: Added note about list-seq producing a lazy list.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.14
1 files changed, 4 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 119bc1d4..bb8cf70f 100644
--- a/txr.1
+++ b/txr.1
@@ -29688,6 +29688,10 @@ and
functions convert an iterable object of any type into a list, vector
or string, respectively.
+The list returned by
+.code list-seq
+is lazy.
+
The
.code list-seq
and