Array struct offers a function
removeAll(where:) (docs) that removes all elements matching the provided predicate. I noticed that this function is not provided for the
Set struct, and I'm wondering if there is any particular reason for that. Maybe it just comes down to sets getting much less usage than arrays and it simply wasn't provided, or maybe there is a good reason I'm not privy to.
I have a set that I want to remove elements from matching a predicate and am about to write an extension, but I wanted to ask as this piqued my curiosity.