• (for-all bindings & body)
body should contain tests that pass for all possible values
in binding. Currently picks *size* at random to test.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source circumspec/for_all.clj:75 top

(defmacro for-all
  "body should contain tests that pass for all possible values
   in binding. Currently picks *size* at random to test."
  [bindings & body]
  (let [var-names (take-nth 2 bindings)]
  `(dotimes [_# *size*]
     (let ~bindings
       ;; (println ~(zipmap (map keyword var-names) var-names)) 
         ~@body))))
Vars in circumspec.for-all/for-all: defmacro let apply concat dotimes list seq vector
Used in 0 other vars

Comments top

No comments for for-all. Log in to add a comment.