diff options
-rw-r--r-- | lib.c | 2 | ||||
-rw-r--r-- | txr.1 | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -7144,6 +7144,8 @@ val sub_vec(val vec_in, val from, val to) if (ge(from, to)) { return vector(zero, nil); + } else if (from == zero && eql(to, len)) { + return vec_in; } else { cnum cfrom = c_num(from); size_t nelem = c_num(to) - cfrom; @@ -26860,8 +26860,7 @@ The description of the operator\(emin particular, the section on Range Indexing\(emexplains the semantics of the range specification. -If the sequence is a list, the output sequence may share substructure -with the input sequence. +The output sequence may share structure with the input sequence. If .meta sequence |