diff --git a/documentation/doc.html b/documentation/doc.html index 4d2b328..36910ab 100644 --- a/documentation/doc.html +++ b/documentation/doc.html @@ -114,7 +114,7 @@

binding is a loop variable and can thus be changed using named updates.

Scheme syntax: up-from
(:for binding (up-from start [(:to bound)] [(:by step)]))
(:for binding (up-from start [bound [by]]))

Binds binding to the number start up to bound (exclusive!) by step. If no bound is given, it will yield values indefinitely. The second shorter form will not allow unbounded iteration if a step other than 1 is wanted.

binding is a loop variable and can thus be changed using named updates.

-
Scheme syntax: down-from
(:for binding (down-from start [(to bound)] [(by step)])
(:for binding (down-from start [bound [by]]))

Binds binding to the number (- start 1) down to bound (inclusive!) by step. If no bound is given, it will yield values indefinitely. The second shorter form will not allow unbounded iteration if a step other than 1 is wanted.

+
Scheme syntax: down-from
(:for binding (down-from start [(:to bound)] [(:by step)])
(:for binding (down-from start [bound [by]]))

Binds binding to the number (- start 1) down to bound (inclusive!) by step. If no bound is given, it will yield values indefinitely. The second shorter form will not allow unbounded iteration if a step other than 1 is wanted.

binding is a loop variable and can thus be changed using named updates.

Scheme syntax: in-list
(:for binding [pair] (in-list expr [by])

Binds binding to the car of the loop variable pair. pair is advanced by applying the procedure by to it (defaulting to cdr). The iteration stops when pair is the empty list.

Scheme syntax: in-lists
(:for binding [pairs] (in-lists expr [by])

Works the same as in-list, but expr must evaluate to a list of lists. binding is bound to the car of those lists, and they are advanced by by, defaulting to cdr.

diff --git a/documentation/doc.xml b/documentation/doc.xml index 74ca8ee..08761fa 100644 --- a/documentation/doc.xml +++ b/documentation/doc.xml @@ -236,7 +236,7 @@ -
(:for binding (down-from start [(to bound)] [(by step)])
+
(:for binding (down-from start [(:to bound)] [(:by step)])
(:for binding (down-from start [bound [by]]))
Binds `binding` to the number `(- start 1)` down to `bound` (inclusive!) by `step`. If no `bound` is given, it will yield values indefinitely. The second shorter form will not allow unbounded iteration if a `step` other than `1` is wanted.