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

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

    Type Parameters

    • T

      A type of converted elements.

    Parameters

    • source: Iterable<Iterable<T>>

      A source iterable of iterables.

    Returns PushIterable<T>

    New push iterable with each element of source being flattened.

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

    Type Parameters

    • TSrc

      A type of source elements.

    • TConv

      A type of converted elements.

    Parameters

    • source: Iterable<TSrc>

      A source iterable of elements to convert.

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

      A function that produces new iterable, taking the source element 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