contramapNonSuspend

open fun <P> contramapNonSuspend(transform: (P) -> Value): NonSuspendCollector<P, Result>

Applies a function over each element in the data source, before giving it to the collector.

Parameters

transform

Function to apply to each value