map

fun BlockingDoubleChain.map(transform: (Double) -> Double): BlockingDoubleChain


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

Map the chain result using suspended transformation. Initial chain result can no longer be safely consumed since mapped chain consumes tokens. Accepts regular transformation function.