@tsdotnet/collection-base - v2.1.1
    Preparing search index...

    Class ReadOnlyIterableCollectionBase<T>Abstract

    Base class for implementing finite read-only iterables.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Applies a reducer function to all the elements in this 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

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

      Returns T

      If the sequence is empty.

    • Applies a reducer function to all the elements in this 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

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

      Returns U