1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-10 09:16:38 +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

@ -2,6 +2,7 @@
All notable changes to this project will be documented in this file.
## ??? - Unreleased
- Add IEEE hex floats to grammar.
- Add `struct/rawget`
- Fix `deep=` and `deep-not=` to better handle degenerate cases with mutable table keys
- Long strings will now dedent on `\r\n` instead of just `\n`.

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