From 12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 30 Mar 2018 16:21:53 -0700 Subject: 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. --- txr.1 | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3