test-check

pablore 2018-02-23T18:05:50.000376Z

Hi, how can I make a generator for a clojure.lang.PersistentQueue?

pablore 2018-02-23T18:14:00.000736Z

Already did it:

(defn gen-queue
  [some-generator]
  (gen/bind  (gen/vector some-generator))
                     #(into (clojure.lang.PersistentQueue/EMPTY) %)))))

2018-02-23T18:29:47.000509Z

That shouldn't work

2018-02-23T18:30:16.000272Z

Should have to switch bind to fmap and swap the arg order