summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-01-26 20:37:23 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-01-26 20:37:23 -0800
commit03870bed9fc6d9769b6dd5b1dd12631d9afa1a0d (patch)
treea1a51b6cd9d693435a86976b551f7dcb91e24773
parentdeb8db04390dc721c55d4e874f03cdf8c6f92de0 (diff)
downloadtxr-03870bed9fc6d9769b6dd5b1dd12631d9afa1a0d.tar.gz
txr-03870bed9fc6d9769b6dd5b1dd12631d9afa1a0d.tar.bz2
txr-03870bed9fc6d9769b6dd5b1dd12631d9afa1a0d.zip
Document that source for range assignment can be a string, vector or list.
-rw-r--r--txr.112
1 files changed, 9 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 39745095..75814bc3 100644
--- a/txr.1
+++ b/txr.1
@@ -4915,9 +4915,15 @@ Retrieve a value from the hash table corresponding to <key>,
or <default-value> if there is no such entry.
The places denoted by the dwim operator can be assigned. There are some
-restrictions. List, string and vector ranges can only be replaced with set. The
-other operators like push do not apply. Characters in a string can only be
-assigned with set or incremented with inc and dec.
+restrictions. List, string and vector ranges can only be replaced using
+the set operator. The other operators like push do not apply.
+Characters in a string can only be assigned with set or incremented with inc
+and dec.
+
+The source of a range assignment can be a string, vector or list,
+regardless of whether the target is a string, vector or list.
+If the target is a string, the replacement sequence must be
+a string, or a list or vector of characters.
.TP
Range Indexing