1
0
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:
Calvin Rose
2025-02-01 17:31:55 -06:00
parent eecffe01a5
commit 1b278fc657
2 changed files with 2 additions and 1 deletions

View File

@@ -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))