choose-from

circumspec.for-all

  • (choose-from & generators)
Retuern a function that chooses from one of the generators at
random.

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:5 top

(defn choose-from
  "Retuern a function that chooses from one of the generators at
   random."
  [& generators]
  (fn [] ((rand-nth generators))))
Vars in circumspec.for-all/choose-from: defn fn rand-nth
Used in 0 other vars

Comments top

No comments for choose-from. Log in to add a comment.