Function flatMapOnce

  • Perform flatMap on an (async) iterable, but flatten at most once.

    Type Parameters

    • T
    • R

    Parameters

    • f: (item: T) => AnyIterable<R>
    • iterable: AnyIterable<T>

    Returns AsyncIterable<R>

    flatMap of streaming-iterables recursively flattens the result. This function flattens at most once.