Clojure set vs distinct vs dedupe?

Viewed 1143

So if we want a collection of unique items we can use a 'set'.

If we already have a collection of items that we want to dedupe, we could pass them to the set function, or alternatively we could use the distinct or dedupe functions.

What are the situations for using each of these (pros/cons)?

Thanks.

1 Answers
Related