(enum-values type)
returns all values of an enum type
(->> (enum-values ElementType) (map str)) => (contains ["TYPE" "FIELD" "METHOD" "PARAMETER" "CONSTRUCTOR"] :in-any-order :gaps-ok)
returns all values of an enum type (->> (enum-values ElementType) (map str)) => (contains ["TYPE" "FIELD" "METHOD" "PARAMETER" "CONSTRUCTOR"] :in-any-order :gaps-ok)
(enum? type)
check to see if class is an enum type
(enum? java.lang.annotation.ElementType) => true
(enum? String) => false
check to see if class is an enum type (enum? java.lang.annotation.ElementType) => true (enum? String) => false
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close