diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-11-22 06:47:32 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-11-22 06:47:32 -0800 |
commit | 01d5eb034e3c325dfceb0a29caadc0b5e756de47 (patch) | |
tree | e99102571a51f6c9f266259cac7fa33b1226370a /tests | |
parent | ea40c38aefb6a0747b631d48d3d680922c44b836 (diff) | |
download | txr-01d5eb034e3c325dfceb0a29caadc0b5e756de47.tar.gz txr-01d5eb034e3c325dfceb0a29caadc0b5e756de47.tar.bz2 txr-01d5eb034e3c325dfceb0a29caadc0b5e756de47.zip |
bugfix: tail handles improper list.
* lib.c (tail): This low-level function is used by the
list accumulation routines. Because it doesn't handle
improper lists, looking for a null terminator, certain
things don't work, like the associativity of append.
For instance (append '(1 2) #(3) 4) works but not
(append (append '(1 2) #(3)) 4). Fixing tail so that it
terminates on any atom, rather than failing trying to
cdr through it.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions