• Flattens the source list of indexed iterables into new push iterable.

    Calling this function is the same as calling flatMapIndexed(source, element => element).

    Type Parameters

    • T

      A type of converted elements.

    Parameters

    • indexed: IndexedItemList<Iterable<T>>

      A source list of indexed iterables.

    Returns PushIterable<T>

    New push iterable with each element of indexed list being flattened.

  • First maps each item of the source indexed list using a mapping function, then flattens the result into new push iterable.

    Type Parameters

    • TSrc

      A type of indexed items.

    • TConv

      A type of converted elements.

    Parameters

    • indexed: IndexedItemList<TSrc>

      A source list of indexed items to convert.

    • convert: ((this, element) => Iterable<TConv>)

      A function that produces new iterable, taking the list item as the only parameter.

        • (this, element): Iterable<TConv>
        • Parameters

          • this: void
          • element: TSrc

          Returns Iterable<TConv>

    Returns PushIterable<TConv>

    New push iterable with each element being the flattened result of the convert function call.

Generated using TypeDoc