contramap

open fun <P> contramap(transform: suspend (P) -> Value): Collector<P, Result>(source)

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

Parameters

transform

Function to apply to each value