Open ggeoffrey opened 1 year ago
This warning shows up when *warn-on-reflection* is set to true.
*warn-on-reflection*
It comes from amb:
amb
(defmacro ^{:arglists '([& forms]) :doc "In an `ap` block, evaluates each form sequentially and returns successive results."} amb ([] `(?> none)) ([form] form) ([form & forms] (let [n (inc (count forms))] `(case (?> (seed (range ~n))) ; <- missing `int` cast ~@(interleave (range) (cons form forms))))))
(case (int (?> (seed (range ~n)))) …) fixes the issue
(case (int (?> (seed (range ~n)))) …)
The same applies to amb=.
amb=
This warning shows up when
*warn-on-reflection*
is set to true.It comes from
amb
:(case (int (?> (seed (range ~n)))) …)
fixes the issueThe same applies to
amb=
.