map

open override fun <S> map(transform: (T) -> S): Observable<S>

Transforms the current observable into a new observable by applying the specified transformation function to its emitted values.

Return

A new observable that emits the transformed values.

Parameters

transform

The function to transform each value emitted by this observable.