clojure-spec

About: http://clojure.org/about/spec Guide: http://clojure.org/guides/spec API: https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html
2021-06-20T15:10:14.119600Z

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

2021-06-20T15:10:56.120400Z

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

alexmiller 2021-06-20T16:00:31.121Z

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

alexmiller 2021-06-20T16:00:51.121500Z

Nothing for this built in

1