summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-30 16:21:53 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-03-30 16:21:53 -0700
commit12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab (patch)
treefbd66a2b54f14f0b2abac3947066ca23187c7112 /txr.1
parent960d5e602c3074afea907b35686482393ada6255 (diff)
downloadtxr-12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab.tar.gz
txr-12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab.tar.bz2
txr-12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab.zip
doc: codify infinite looping behavior of each.
* txr.1: the each, append-each and all other variants of operators exhibit inifite looping if the list of bindings is empty. In that case, the terminating condition that at least one list is empty, is never true. The behavior is consistent under compilation and interpretation, so let's just document it.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.16
1 files changed, 6 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index ecfe3219..443dedeb 100644
--- a/txr.1
+++ b/txr.1
@@ -15271,6 +15271,12 @@ determines the number of iterations, so if any of the
evaluate to
an empty list, the body is not executed.
+If the list of
+.cblk
+.meti >> ( syn << init-form )
+.cble
+pairs itself is empty, then an infinite loop is specified.
+
The body forms are enclosed in an anonymous block, allowing the
.code return
operator to terminate the loop prematurely and optionally specify