JuliaCollections / IterTools.jl

Common functional iterator patterns
Other
152 stars 28 forks source link

`distinct` version allowing arbitrary equality function #96

Closed ParadaCarleton closed 1 year ago

ParadaCarleton commented 1 year ago

Would it make sense to add a version of distinct that allows users to pass a definition of equality as the first argument? I'm interested in using distinct on an iterator over floats, where I'm less interested in exact equality.