Closed jeremyevans closed 3 years ago
Why not go further and allow any Enumerable
?
In that case, we simply loop on it and check against the set. For many cases, that would be more efficient than building an intermediary set as proposed here.
Considering I screwed up the implementation and create an intermediate set without doing anything with it, that seems fine with me.
@knu Thank you for your review. I've pushed a commit that updates the documentation.
Implements [Feature #17838]