collect

fun <T, R> Chain<T>.collect(mapper: suspend (Chain<T>) -> R): Chain<R>

Map the whole chain