From ccfa75463cd7c702f41c3dae5cbdaeade7ba5c31 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 14 Sep 2021 16:41:18 -0400 Subject: Re-named "recur" to "again". --- stdlib/source/documentation/lux.lux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stdlib/source/documentation/lux.lux') 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 -- cgit v1.2.3