Function concatMap

  • Map each value of a stream to a substream, then concatenate the resulting substreams

    (This is just shorthand for compose(map(mapper), concatAll).)

    If you want to switch to a new stream whenever a new event arrives on the input stream, use switchMap instead.

    Type Parameters

    • T
    • R

    Parameters

    Returns Transformer<T, R>