summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-02-29 20:36:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-02-29 20:36:25 -0800
commit9cfa3435672667fe0fe9abc59b9e1352c4a276d3 (patch)
tree195865754e78b9f34d06f8d8d6bd4edefd354df7 /parser.l
parente8dedb798f4333e5fc2c85e37c019600010b6f7d (diff)
downloadtxr-9cfa3435672667fe0fe9abc59b9e1352c4a276d3.tar.gz
txr-9cfa3435672667fe0fe9abc59b9e1352c4a276d3.tar.bz2
txr-9cfa3435672667fe0fe9abc59b9e1352c4a276d3.zip
partition, split, split*: iter used for indices
* lib.c (partition_func, split_func, split_star_func): Indices passed through lazy cons are now iterator, rather than a sequence accessed via car and cdr, which is inefficient for nonlists. (partition-split-common): Use iter-begin to convert indices to iterator, which becomes the cdr field of the lazy cons. * txr.1: Update documentation for these functions to clarify that the second argument is a sequence. The inaccurate text claiming that "if the second argument is an atom other than a function" is rewritten. This doesn't describe the behavior that is implemented, where the test applied is seqp, not atom. The indices can be a vector of integers, which is an atom.
Diffstat (limited to 'parser.l')
0 files changed, 0 insertions, 0 deletions