diff options
author | Eduardo Julian | 2021-09-14 16:41:18 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-09-14 16:41:18 -0400 |
commit | ccfa75463cd7c702f41c3dae5cbdaeade7ba5c31 (patch) | |
tree | c47937a8f62a25ef945a876b3af76c5fca989db9 /stdlib/source/documentation | |
parent | ea15b844b51ff60f9785c6791507f813729f85c3 (diff) |
Re-named "recur" to "again".
Diffstat (limited to 'stdlib/source/documentation')
-rw-r--r-- | stdlib/source/documentation/lux.lux | 8 | ||||
-rw-r--r-- | stdlib/source/documentation/lux/tool/compiler/language/lux/synthesis.lux | 2 |
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) |