https://kotlinlang.org logo
#getting-started
Title
# getting-started
r

Ran Magen

09/16/2019, 4:47 PM
Hi Kotlin folks. Is there a stdlib function for
filterAndMap
similar to Scala's
collect
? nothing popped out to me by browsing the source. would look like
fun <T> List<T>.collect(predicate: (T) -> Boolean, map: (T) -> R): List<R>