summaryrefslogtreecommitdiffstats
path: root/mpi/logtab.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-03-20 06:19:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-03-20 06:19:28 -0700
commit2cec86984b7110a6a464b992edb6160149a0a75f (patch)
tree1c585b943d8d1eebaa2b20182f5bc49afe796fae /mpi/logtab.h
parent19a868e30bbae3ae01d176a8aca876a36f8dc571 (diff)
downloadtxr-2cec86984b7110a6a464b992edb6160149a0a75f.tar.gz
txr-2cec86984b7110a6a464b992edb6160149a0a75f.tar.bz2
txr-2cec86984b7110a6a464b992edb6160149a0a75f.zip
take: rewrite with seq_info; elide cons.
* lib.c (take_list_fun, take_while_list_fun): Renamed to lazy_take_list_fun and lazy_take_while_list_fun respectively. (lazy_take_list_fun, take): take upgraded to use seq_info to classify sequence. In the lazy list case, the state cons is elided; the list is passed as the function environment, and the remaining count is propagated in the lazy cons's car field. (lazy_take_while_list_fun, take_while): Similar changes. * txr.1: Fixed accidental reference to drop function in the documentation for the take function.
Diffstat (limited to 'mpi/logtab.h')
0 files changed, 0 insertions, 0 deletions