Join Slack
Powered by
Is there a nice way of doing this? ``` someList .f...
# getting-started
d
dG
02/01/2019, 11:15 AM
Is there a nice way of doing this?
Copy code
someList .filter(it.foo != null) .filter(barFunction(it.foo!!))
Referring to the
!!
in the last line, doesn't seem like that would be the kotlin way Assuming I don't want to overload barFunction to accept a nullable
Open in Slack
Previous
Next