Apply function fn to each chunk of data

map_stream(fn, ...)

Arguments

fn

function applied to each chunk of stream, the result of which is enqueued to the readable side

...

arguments passed to TransformStream

Examples

mapper <- as_reader(1:10) %|>%
    map_stream(as.character) |>
    on("data", print)