@tsdotnet/linq - v1.5.11
    Preparing search index...

    Function aggregate

    An iterable transform that applies an accumulator function over a sequence. The specified initialValue is used as the initial accumulator value, and the specified function is used to select the result value. If no initialValue is specified, the first entry in the sequence is used.

    • An iterable transform that applies an accumulator function over a sequence. The first entry is used as the initial accumulator value, and the specified function is used to select the result value.

      Type Parameters

      • T

      Parameters

      • reducer: (previous: T, current: T, index: number) => T

      Returns IterableTransform<T, T>

    • An iterable transform that applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

      Type Parameters

      • T
      • U

      Parameters

      • reducer: (previous: U, current: T, index: number) => U
      • initialValue: U

      Returns IterableTransform<T, U>