Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametric equality function in Dedupe #517

Closed
jonalm opened this issue Mar 4, 2022 · 0 comments · Fixed by #518
Closed

Parametric equality function in Dedupe #517

jonalm opened this issue Mar 4, 2022 · 0 comments · Fixed by #518

Comments

@jonalm
Copy link
Contributor

jonalm commented Mar 4, 2022

Hi, It would be nice to be able to input the equal operator used by Dedupe()

e.g.

julia> xs = [(;counter=1, value=:foo),  (;counter=2, value=:foo), (;counter=3 , value=:bar) ]
julia> xs |> Dedupe((x,y) -> x.value==y.value) |> collect
2-element Vector{NamedTuple{(:counter, :value), Tuple{Int64, Symbol}}}:
 (counter = 1, value = :foo)
 (counter = 3, value = :bar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant