Fork me on GitHub
#clojure-spec
<
2021-06-20
>
hkjels15:06:14

I have a collection where I want an identifier for each entity in that collection to be unique. Can that be specified?

hkjels15:06:56

I know of distinct on coll-of, but that just enures that each entity is unique AFAICS

Alex Miller (Clojure team)16:06:31

If you can write a predicate function, you can make that a spec

Alex Miller (Clojure team)16:06:51

Nothing for this built in

3