Training
Module
Store and apply operations on list data in F# - Training
This module covers collections in F#, with a specific focus on lists.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
List.Accumulate(list as list, seed as any, accumulator as function) as any
Accumulates a summary value from the items in the list list
, using accumulator
. An optional seed parameter, seed
, may be set.
Accumulates the summary value from the items in the list {1, 2, 3, 4, 5} using ((state, current) => state + current ).
Usage
List.Accumulate({1, 2, 3, 4, 5}, 0, (state, current) => state + current)
Output
15
Training
Module
Store and apply operations on list data in F# - Training
This module covers collections in F#, with a specific focus on lists.