map

fun <B> map(f: SampleScope.(A) -> B): Event<B>(source)

Applies the passed function f to each event that is emitted, producing a new transformed Event stream.

Note: f should be a pure function.