5 lines
156 B
Kotlin
Vendored
5 lines
156 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
fun foo(list: List<String?>) {
|
|
list.filter { it != null } /* filter out nulls */
|
|
.forEach<caret> { print(1..4) /* print x */ }
|
|
} |