map<T2> method

Flow<T2> map<T2>(
  1. FlowMapper<T, T2> mapper
)

Return a new flow that maps from this flow's type to another type using mapper function.

Implementation

Flow<T2> map<T2>(FlowMapper<T, T2> mapper) {
  return MappingFlow(this, mapper);
}