map



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

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.