mirror of
https://github.com/janet-lang/janet
synced 2025-11-04 17:43:02 +00:00
Update reduce2 documentation to fix issue #1545
This commit is contained in:
@@ -996,7 +996,7 @@
|
||||
|
||||
(defn reduce2
|
||||
``The 2-argument version of `reduce` that does not take an initialization value.
|
||||
Instead, the first element of the array is used for initialization.``
|
||||
Instead, the first element of the array is used for initialization. If `ind` is empty, will evaluate to nil.``
|
||||
[f ind]
|
||||
(var k (next ind))
|
||||
(if (= nil k) (break nil))
|
||||
|
||||
Reference in New Issue
Block a user