Fork me on GitHub
#test-check
<
2018-02-23
>
pablore18:02:50

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

pablore18:02:00

Already did it:

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

gfredericks18:02:47

That shouldn't work

gfredericks18:02:16

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