This seems to still result in a `List<String?&g...
# announcements
r
This seems to still result in a
List<String?>
even though I’m filtering for null.
Copy code
someListOfNullableStrings.map { it?.let { str -> Foo(str) } }.filter { it != null }
n
filterNotNull()
🙇‍♂️ 1
r
Boy, do I feel silly. Thanks for that!
👍🏻 1
apparently
mapNotNull { }
is a thing too