speculative

https://github.com/borkdude/speculative
borkdude 2019-01-21T10:20:38.182200Z

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.

borkdude 2019-01-21T10:21:20.182500Z

it’s this problem: http://www.4clojure.com/problem/83

borkdude 2019-01-21T10:28:35.182900Z

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?

borkdude 2019-01-21T10:29:33.183300Z

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

borkdude 2019-01-21T11:14:28.183700Z

Another one bites the dust: https://github.com/mfikes/coal-mine/pull/107/files