aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-09-14 16:41:18 -0400
committerEduardo Julian2021-09-14 16:41:18 -0400
commitccfa75463cd7c702f41c3dae5cbdaeade7ba5c31 (patch)
treec47937a8f62a25ef945a876b3af76c5fca989db9 /stdlib/source/documentation/lux.lux
parentea15b844b51ff60f9785c6791507f813729f85c3 (diff)
Re-named "recur" to "again".
Diffstat (limited to 'stdlib/source/documentation/lux.lux')
-rw-r--r--stdlib/source/documentation/lux.lux8
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