Why does the implementation of `uniqued()` not use `filter()`?

Hi! Thanks for your work on this package @nnnnnnnn – had a question for you that came up during a discussion inspired by this code. Is there a specific reason that the implementation of uniqued() doesn't call through to filter()? Thanks!

1 Like

I'm also interested. My Hashable-reliant implementation also uses filter.

This isn't a documented requirement, but generally in standard library code we prefer not to pass functions with side effects to filter or similar methods.

Terms of Service

Privacy Policy

Cookie Policy