diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-01-26 20:37:23 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-01-26 20:37:23 -0800 |
commit | befe64b826765e8f9e6834fb482c8bfbbf19b8a5 (patch) | |
tree | a1a51b6cd9d693435a86976b551f7dcb91e24773 | |
parent | b4bca7645111c277afa6f6cde03d0f51592b4748 (diff) | |
download | txr-befe64b826765e8f9e6834fb482c8bfbbf19b8a5.tar.gz txr-befe64b826765e8f9e6834fb482c8bfbbf19b8a5.tar.bz2 txr-befe64b826765e8f9e6834fb482c8bfbbf19b8a5.zip |
Document that source for range assignment can be a string, vector or list.
-rw-r--r-- | txr.1 | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |