karelpeeters
val result = list.map{ f(it) }
val result = mutableListOf<...>() list.forEach { result.add(f(it)) }