class-symbol

circumspec.for-all

  • (class-symbol)
  • (class-symbol in-namespace)
Randomly selects one of the classes in the given namespace.

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

(defn class-symbol
  "Randomly selects one of the classes in the given namespace."
  ([] (class-symbol *ns*))
  ([in-namespace]
    (rand-nth (keys (ns-imports in-namespace)))))
Vars in circumspec.for-all/class-symbol: *ns* defn keys ns-imports rand-nth
Used in 0 other vars

Comments top

No comments for class-symbol. Log in to add a comment.