map

inline fun <T, R> Event<T>.map(transform: (T) -> R): Event<R>(source)

When this Event is a Event.Value, return a Event.Value containing transformed value using transform. Otherwise, returns itself.