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.it’s this problem: http://www.4clojure.com/problem/83
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?I also found the same with find
, I already added a note to that spec
Another one bites the dust: https://github.com/mfikes/coal-mine/pull/107/files