diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-07-08 07:36:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-07-08 07:36:25 -0700 |
commit | 2c2fe9fc598e6677e9b16372b65c477c5ba6d03b (patch) | |
tree | 590c017d9ac8650ccb05f979be0bc06a7f031d8b /txr.1 | |
parent | fa3c90eb3ac48abd8bb9065884fe15523a864766 (diff) | |
download | txr-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.1 | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |