summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-12-31 07:23:35 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-12-31 07:23:35 -0800
commitbf5a03f450f26e07a1ccc6f00d9bd0c5659e8591 (patch)
tree02d9e561b9fc5b4319f1649a459a63c7bbcf4d7f
parentfd4bdd5889162d26bf2f195224e6a3c675696f8e (diff)
downloadtxr-bf5a03f450f26e07a1ccc6f00d9bd0c5659e8591.tar.gz
txr-bf5a03f450f26e07a1ccc6f00d9bd0c5659e8591.tar.bz2
txr-bf5a03f450f26e07a1ccc6f00d9bd0c5659e8591.zip
* txr.1: Fix error. (set [seq index-list] new) corresponds to
replace not to refset.
-rw-r--r--ChangeLog5
-rw-r--r--txr.111
2 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4728310a..28bd6199 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-31 Kaz Kylheku <kaz@kylheku.com>
+
+ * txr.1: Fix error. (set [seq index-list] new) corresponds to
+ replace not to refset.
+
2014-12-25 Kaz Kylheku <kaz@kylheku.com>
* stream.c (stream_init): Register make_catenated_stream in
diff --git a/txr.1 b/txr.1
index af4e55fe..6f718ca0 100644
--- a/txr.1
+++ b/txr.1
@@ -10484,12 +10484,17 @@ This form is equivalent to
.cble
except when the target of an assignment operation.
-The following equivalences hold:
+The following equivalences hold between index-list-based indexing
+and the
+.code select
+and
+.code replace
+functions:
.cblk
- [seq list] <--> (select seq list)
+ [seq idx-list] <--> (select seq idx-list)
- (set [seq list] new) <--> (refset seq new list)
+ (set [seq idx-list] new) <--> (replace seq new idx-list)
.cble
This form does not accept update operators like