summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib.c2
-rw-r--r--txr.16
2 files changed, 4 insertions, 4 deletions
diff --git a/lib.c b/lib.c
index 8418844a..52f984e3 100644
--- a/lib.c
+++ b/lib.c
@@ -3014,7 +3014,7 @@ static val sub_iter(val obj, val from, val to)
if (!to) {
do {
if (ge(idx, from))
- return iter_dynamic(&iter);
+ return list_seq(iter_dynamic(&iter));
idx = succ(idx);
} while (seq_get(&iter, &elem));
} else {
diff --git a/txr.1 b/txr.1
index bda03dcc..c18ee4ce 100644
--- a/txr.1
+++ b/txr.1
@@ -34701,14 +34701,14 @@ argument may also be any other object type that is suitable as input to the
.code iter-begin
function. In this situation, assigning to
.code sub
-syntax produces an error. The behavior is complex. In cases where the
+syntax produces an error. Furthermore, in cases where the
.meta from
and
.meta to
arguments imply that a suffix of
.meta sequence
-is required, an iterator may be returned which traverses the suffix
-of the sequence. In other cases, a list of the elements selected by
+is required, an lazy list of the suffix of the iterated sequence
+will be returned. In other cases, a regular list of the elements selected by
.code sub
is returned.