(create-lookup m)(create-lookup m ignore)creates a path lookup given a record
(create-lookup {:byte {:name "byte" :size 1} :long {:name "long" :size 4}}) => {"byte" [:byte :name] 1 [:byte :size] "long" [:long :name] 4 [:long :size]}
creates a path lookup given a record
(create-lookup {:byte {:name "byte" :size 1}
                :long {:name "long" :size 4}})
=> {"byte" [:byte :name]
    1 [:byte :size]
    "long" [:long :name]
    4 [:long :size]}(primitive-type v 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.object.query uses for matching (i.e. boolean, char, int)
:string    - The string that hara.object.query uses for matching
:class     - The primitive class representation of the primitive
:container - The containing class representation for the primitive type
(primitive-type Boolean/TYPE :symbol) => 'boolean
(primitive-type "Z" :symbol) => 'boolean
(primitive-type "int" :symbol) => 'int
(primitive-type Character :string) => "char"
(primitive-type "V" :class) => Void/TYPE
(primitive-type 'long :container) => Long
(primitive-type 'long :type) => :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.object.query uses for matching (i.e. boolean, char, int) :string - The string that hara.object.query uses for matching :class - The primitive class representation of the primitive :container - The containing class representation for the primitive type (primitive-type Boolean/TYPE :symbol) => 'boolean (primitive-type "Z" :symbol) => 'boolean (primitive-type "int" :symbol) => 'int (primitive-type Character :string) => "char" (primitive-type "V" :class) => Void/TYPE (primitive-type 'long :container) => Long (primitive-type 'long :type) => :long
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |