diff options
Diffstat (limited to 'stdlib/source/documentation/lux.lux')
-rw-r--r-- | stdlib/source/documentation/lux.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/documentation/lux.lux b/stdlib/source/documentation/lux.lux index 71fc37125..f3ba1542e 100644 --- a/stdlib/source/documentation/lux.lux +++ b/stdlib/source/documentation/lux.lux @@ -541,10 +541,10 @@ (loop [end to output {.#End}] (cond (< end from) - (recur (pred end) {.#Item end output}) + (again (pred end) {.#Item end output}) (< from end) - (recur (succ end) {.#Item end output}) + (again (succ end) {.#Item end output}) ... (= end from) {.#Item end output}))))]) @@ -680,12 +680,12 @@ ) (documentation: /.loop - (format "Allows arbitrary looping, using the 'recur' form to re-start the loop." + (format "Allows arbitrary looping, using the 'again' form to re-start the loop." \n "Can be used in monadic code to create monadic loops.") [(loop [count +0 x init] (if (< +10 count) - (recur (++ count) (f x)) + (again (++ count) (f x)) x))] ["Loops can also be given custom names." (loop my_loop |