Fork me on GitHub
#clojure-spec
<
2018-11-02
>
borkdude14:11:29

This works:

(set/map-invert (java.util.HashMap. {:foo :bar}))
This also works:
(set/map-invert [[:a 1] [:b 2]])
Even this works:
(set/map-invert ["a1" "b2"])
{\1 \a, \2 \b}
Any reducible coll of nth-able pairs will do. How far should we go with the spec for set/map-invert?

borkdude14:11:43

The first case is used in Datomic