aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/documentation/lux.lux8
-rw-r--r--stdlib/source/documentation/lux/tool/compiler/language/lux/synthesis.lux2
2 files changed, 5 insertions, 5 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
diff --git a/stdlib/source/documentation/lux/tool/compiler/language/lux/synthesis.lux b/stdlib/source/documentation/lux/tool/compiler/language/lux/synthesis.lux
index c427f8aa7..93b9282c7 100644
--- a/stdlib/source/documentation/lux/tool/compiler/language/lux/synthesis.lux
+++ b/stdlib/source/documentation/lux/tool/compiler/language/lux/synthesis.lux
@@ -71,7 +71,7 @@
($.default /.branch/let)
($.default /.branch/if)
($.default /.branch/get)
- ($.default /.loop/recur)
+ ($.default /.loop/again)
($.default /.loop/scope)
($.default /.function/abstraction)
($.default /.function/apply)