Is there a method in Stream that allows you to map...
# announcements
s
Is there a method in Stream that allows you to map and filter in one method? Fx cast x and ignore the entries that would fail the cast
d
Are you referring to
java.util.stream.Stream
? If so, you could use a
flatMap
. Kotlin's Sequences have
mapNotNull
.
s
👍