function fold fold<T,S,>(iterable: Iterable<T>,initial: S,accumulate: (accumulator: S,value: T,) => S,): S Type Parameters T S Parameters iterable: Iterable<T> initial: S accumulate: (accumulator: S,value: T,) => S Return Type S