mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Tweak seed description
This commit is contained in:
parent
5762f3311b
commit
2170bb37bc
1 changed files with 2 additions and 1 deletions
|
@ -4820,7 +4820,8 @@ type of the accumulator.)
|
|||
$(P For a single predicate,
|
||||
the call `fold!(fun)(range, seed)` will:)
|
||||
|
||||
* Assign `seed` to an internal variable `result` (also called the accumulator)
|
||||
* Use `seed` to initialize an internal variable `result` (also called
|
||||
the accumulator).
|
||||
* For each element `e` in $(D range), evaluate `result = fun(result, e)`.
|
||||
* Return $(D result).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue