Optimize distinct
/distinctBy
implementations for non-empty collections
#4610
Labels
distinct
/distinctBy
implementations for non-empty collections
#4610
A follow up for #4608 (see my comment #4608 (comment)).
For an example of a pretty well optimized implementation one could check out the corresponding methods in
Chain
:cats/core/src/main/scala/cats/data/Chain.scala
Lines 797 to 813 in 930f25c
cats/core/src/main/scala/cats/data/Chain.scala
Lines 826 to 842 in 930f25c
The text was updated successfully, but these errors were encountered: