Fork me on GitHub
#speculative
<
2019-01-21
>
borkdude10:01:38

Hah, speculative detected that the 4clojure solution

(fn [& xs] (->> xs
               distinct
               keys
               count
               (= 2)))
used keys in a wrong way. But this solution still worked, because calling count a a keyseq apparently does not realize the seq. The call to keys is not needed though.

borkdude10:01:35

it also discovered this case:

(select-keys [:e :e :e :e :e :e :e :e :e] [0 1 2])
Probably the spec should support it?

borkdude10:01:33

I also found the same with find, I already added a note to that spec