summaryrefslogtreecommitdiffstats
path: root/y.tab.c.shipped
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-08-22 11:19:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-08-22 11:19:35 -0700
commit1819c8bea0d960f2895485e58901dbcc6193d071 (patch)
treea328d7167e976ae88f8985b2685d7a0a1592d0fd /y.tab.c.shipped
parent9ec47b693f9618bfd29347226157dc2f8a655ff8 (diff)
downloadtxr-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