List.Accumulate

구문

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

정보

를 사용하여 accumulator목록list의 항목에서 요약 값을 누적합니다. 선택적 시드 매개 변수를 seed설정할 수 있습니다.

예 1

((state, current) => state + current )를 사용하여 {1, 2, 3, 4, 5} 목록의 항목에서 요약 값을 누적합니다.

사용법

List.Accumulate({1, 2, 3, 4, 5}, 0, (state, current) => state + current)

출력

15