diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-08-22 11:19:35 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-08-22 11:19:35 -0700 |
commit | 1819c8bea0d960f2895485e58901dbcc6193d071 (patch) | |
tree | a328d7167e976ae88f8985b2685d7a0a1592d0fd /y.tab.c.shipped | |
parent | 9ec47b693f9618bfd29347226157dc2f8a655ff8 (diff) | |
download | txr-1819c8bea0d960f2895485e58901dbcc6193d071.tar.gz txr-1819c8bea0d960f2895485e58901dbcc6193d071.tar.bz2 txr-1819c8bea0d960f2895485e58901dbcc6193d071.zip |
sub: allow generic iterables.
In this patch we allow the s in (sub s from to) and [s from..to]
to be any iterable.
* lib.c (iter_dynamic, sub_iter): New static function.
(generic_funcall): Handle all objects via the sequence case:
ref, sub and all that. Unfortunately, we lose some error
handling at the level of the sub function. But we allow any
iterable to be passed through to sub.
(sub): Handle default case through sub_iter.
* tests/012/iter.tl: New cases.
* txr.1: Documented.
Diffstat (limited to 'y.tab.c.shipped')
0 files changed, 0 insertions, 0 deletions