(primitive-convert v to)
(primitive-convert v from to)
Converts primitive values across their different representations. The choices are:
:raw - The string in the jdk (i.e. Z
for Boolean, C
for Character)
:symbol - The symbol that hara.reflect uses for matching (i.e. boolean, char, int)
:string - The string that hara.reflect uses for matching
:class - The primitive class representation of the primitive
:container - The containing class representation for the primitive type
(primitive-convert Boolean/TYPE :symbol) => 'boolean
(primitive-convert "Z" :symbol) => 'boolean
(primitive-convert "int" :symbol) => 'int
(primitive-convert Character :string) => "char"
(primitive-convert "V" :class) => Void/TYPE
(primitive-convert 'long :container) => Long
Converts primitive values across their different representations. The choices are: :raw - The string in the jdk (i.e. `Z` for Boolean, `C` for Character) :symbol - The symbol that hara.reflect uses for matching (i.e. boolean, char, int) :string - The string that hara.reflect uses for matching :class - The primitive class representation of the primitive :container - The containing class representation for the primitive type (primitive-convert Boolean/TYPE :symbol) => 'boolean (primitive-convert "Z" :symbol) => 'boolean (primitive-convert "int" :symbol) => 'int (primitive-convert Character :string) => "char" (primitive-convert "V" :class) => Void/TYPE (primitive-convert 'long :container) => Long
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close