diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-11-11 06:33:01 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-11-11 06:33:01 -0800 |
commit | 82020af157ad104be3a62b57053d2420d17785f9 (patch) | |
tree | e2a54d56d981a7d6e2c657e154fa264b237546b4 /eval.c | |
parent | 73368784f2c3d69a0fbc227420550b4b1e05d4ea (diff) | |
download | txr-82020af157ad104be3a62b57053d2420d17785f9.tar.gz txr-82020af157ad104be3a62b57053d2420d17785f9.tar.bz2 txr-82020af157ad104be3a62b57053d2420d17785f9.zip |
Improve reverse and nreverse.
* lib.c (nreverse): Handle strings and vectors
individually, and do strings and vectors in-place.
(reverse): Handle strings and vectors individually,
by duplicating and then in place. Handle lazy
strings by forcing, then reversing a copy.
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions