mirror of
https://github.com/janet-lang/janet
synced 2025-08-03 12:35:21 +00:00
Update reduce2 documentation to fix issue #1545
This commit is contained in:
parent
eecffe01a5
commit
1b278fc657
@ -2,6 +2,7 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## ??? - Unreleased
|
## ??? - Unreleased
|
||||||
|
- Add IEEE hex floats to grammar.
|
||||||
- Add `struct/rawget`
|
- Add `struct/rawget`
|
||||||
- Fix `deep=` and `deep-not=` to better handle degenerate cases with mutable table keys
|
- 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`.
|
- Long strings will now dedent on `\r\n` instead of just `\n`.
|
||||||
|
@ -996,7 +996,7 @@
|
|||||||
|
|
||||||
(defn reduce2
|
(defn reduce2
|
||||||
``The 2-argument version of `reduce` that does not take an initialization value.
|
``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]
|
[f ind]
|
||||||
(var k (next ind))
|
(var k (next ind))
|
||||||
(if (= nil k) (break nil))
|
(if (= nil k) (break nil))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user