<Kotlin equivalent of Scala Traversable.collect> I...
# stackoverflow
u
Kotlin equivalent of Scala Traversable.collect Is there an equivalent in Kotlin for Scala's Traversable.collect function? Specifically, I would like to map a List to a List, but only if that can succeed. myList.map { val myNullableThing = it.someNullableMethod() // If it is null, then I cannot continue here // and I want to simply ignore this item }