diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-07-02 06:21:35 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-07-02 06:21:35 -0700 |
commit | 6c9d1315ca6da5f3b5d365d952259480be5b7e58 (patch) | |
tree | f4d43ca5d3f8be5d6d2b67768be89c6005bd9dfd /txr.1 | |
parent | f3101cf296dfa0c7f97fd573ded8409905ae9ca1 (diff) | |
download | txr-6c9d1315ca6da5f3b5d365d952259480be5b7e58.tar.gz txr-6c9d1315ca6da5f3b5d365d952259480be5b7e58.tar.bz2 txr-6c9d1315ca6da5f3b5d365d952259480be5b7e58.zip |
New function: iterable.
* eval.c (eval_init): Register iterable intrinsic.
* lib.c (seq_iterable): New static function.
(nullify): Use seq_iterable to simplify function.
(iterable): New function.
* lib.h (iterable): Declared.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -29342,6 +29342,30 @@ methods are considered sequences. No other objects are sequences. However, future revisions of the language may specify additional objects that are sequences. +.coNP Function @ iterable +.synb +.mets (iterable << object ) +.syne +.desc +The +.code iterable +function returns +.code t +if +.meta object +is iterable, otherwise +.conp nil . + +If +.meta object +is a sequence according to the +.code seqp +function, then it is iterable. + +Additional objects that are not sequences are also iterable: +numeric or character ranges, and numbers. Future revisions +of the language may specify additional iterable objects. + .coNP Function @ make-like .synb .mets (make-like < list << object ) |