summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-06-12 06:56:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-06-12 06:56:28 -0700
commitd743537013689e80cb1ede22dbb4e241d601b6ea (patch)
tree83c8a4acddf5216dcdcfca158f05326b81eb25f0 /txr.1
parent2fe27a3760606616a9b859a145cb1b358cfa415a (diff)
downloadtxr-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