diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-03-20 06:19:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-03-20 06:19:28 -0700 |
commit | 2cec86984b7110a6a464b992edb6160149a0a75f (patch) | |
tree | 1c585b943d8d1eebaa2b20182f5bc49afe796fae /mpi/logtab.h | |
parent | 19a868e30bbae3ae01d176a8aca876a36f8dc571 (diff) | |
download | txr-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