diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-06-12 06:56:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-06-12 06:56:28 -0700 |
commit | d743537013689e80cb1ede22dbb4e241d601b6ea (patch) | |
tree | 83c8a4acddf5216dcdcfca158f05326b81eb25f0 /txr.1 | |
parent | 2fe27a3760606616a9b859a145cb1b358cfa415a (diff) | |
download | txr-d743537013689e80cb1ede22dbb4e241d601b6ea.tar.gz txr-d743537013689e80cb1ede22dbb4e241d601b6ea.tar.bz2 txr-d743537013689e80cb1ede22dbb4e241d601b6ea.zip |
replace_list: revise, fixing several bugs.
* lib.c (replace_list): Avoid using the dubious toseq
function which turns a non-sequence object into a list of one
item. This is not documented. Rewrite the
assign-to-multiple-indices logic into one loop that uses
sequence iterators. A bug is fixed here: failing to step the
indices and items in parallel. Don't use list_vec on items;
it fails on strings. Strings are now supported properly: they
expand into a list of items that is spliced.
Diffstat (limited to 'txr.1')
0 files changed, 0 insertions, 0 deletions