Table of contents
TOC
Collapse the table of content
Expand the table of content

List.Accumulate

Owen Duncan|Last Updated: 4/19/2018

About

Accumulates a result from the list. Starting from the initial value seed this function applies the accumulator function and returns the final result.

List.Accumulate(list as list, seed as any, accumulator as function)as any  

Arguments

ArgumentDescription
listThe List to check.
seedThe initial value seed.
accumulatorThe value accumulator function.

Example

// This accumulates the sum of the numbers in the list provided.  
List.Accumulate({1, 2, 3, 4, 5}, 0, (state, current) => state + current) equals 15  
© 2018 Microsoft