map

fun <T, R> Observable<T>.map(func: (T) -> R): Observable<R>

Returns an Observable that applies a specified function to each item emitted by the source Observable and emits the results of these function applications.

Return

an Observable that emits the items from the source Observable, transformed by the specified func

Parameters

R

the output type

func

a function to apply to each item emitted by the Observable

See also