Add Optional.filter to the Standard Library

I think Swift should have this. As for motivation, I'll quote you from the previous thread:

Maybe that sounds like argument by authority, but I'd argue that this is probably a very natural thing to come up with which is why it's found in so many languages.

9 Likes