summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-05-14 06:12:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-05-14 06:12:30 -0700
commit7d58b9a73f3adc4f665a83f72db2eeae19519a17 (patch)
tree88da00d4228ab900144f00f8dc310ec476744305 /txr.1
parent5a383a288d620b9ae6111d9f33b9e420d3fcd0f8 (diff)
downloadtxr-7d58b9a73f3adc4f665a83f72db2eeae19519a17.tar.gz
txr-7d58b9a73f3adc4f665a83f72db2eeae19519a17.tar.bz2
txr-7d58b9a73f3adc4f665a83f72db2eeae19519a17.zip
* lib.c (replace_list, replace_str, replace_vec): Handle
the case when from is a vector, for consistency with the sel function and the dwim operator. * txr.1: Document that the third argument of select and replace may be a vector.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.16
1 files changed, 4 insertions, 2 deletions
diff --git a/txr.1 b/txr.1
index 08c2752a..deba1a76 100644
--- a/txr.1
+++ b/txr.1
@@ -13664,7 +13664,8 @@ which consists of those elements of
.meta object
which are identified by
the indices in
-.metn index-list .
+.metn index-list ,
+which may be a list or a vector.
If
.meta function
@@ -17849,7 +17850,8 @@ with the input sequence.
The
.code replace
function has two invocation styles, distinguished by the
-type of the third argument. If the third argument is a list, then it is deemed to be the
+type of the third argument. If the third argument is a list or vector, then it
+is deemed to be the
.meta index-list
parameter of the second form.
Otherwise, if the third argument is missing, or is not a list, then