mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Add documentation for reduce
This commit is contained in:
@ -340,6 +340,14 @@ Tests whether all the elements in the list pass the `predicate`.
|
||||
|
||||
**TODO**
|
||||
|
||||
### **reduce**(f), **reduce**(acc, f)
|
||||
|
||||
Implements a left fold, reducing the list to a single value. The given function
|
||||
is passed two arguments: the accumulator, then the current list value.
|
||||
|
||||
The first list item is used as accumulator when calling the first variant. Thus,
|
||||
it only works on lists with two or more elements.
|
||||
|
||||
### **removeAt**(index)
|
||||
|
||||
**TODO**
|
||||
|
||||
Reference in New Issue
Block a user