Internal helpers for hiphip, including generating primitive type-specific array code and parsing hiphip-style array bindings.
Internal helpers for hiphip, including generating primitive type-specific array code and parsing hiphip-style array bindings.
(array-cast type expr)
Produce an array hint for a primitive array expr of a given type
Produce an array hint for a primitive array expr of a given type
(assert-iae form & format-args)
Like assert, but throws an IllegalArgumentException not an Error (and also takes args to format)
Like assert, but throws an IllegalArgumentException not an Error (and also takes args to format)
(dotimes-int [sym & start-stop] & body)
Like dotimes, but faster and only works on int ranges. Also takes an optional start for the iteration.
Like dotimes, but faster and only works on int ranges. Also takes an optional start for the iteration.
(intcast sym)
Generate code to cast a symbol to an integer.
Generate code to cast a symbol to an integer.
(parse-bindings bindings)
Given a type, index symbol, and a vector of array bindings, generate a map with keys: :start-sym - a symbol bound to the iteration start point :stop-sym - a symbol bound to the iteration stop point :initial-bindings - bindings [array-sym array-expr ... start-sym ... stop-sym ...] -- with array-sysm in the order provided in the input. :value-bindings - bindings [array-val array-sym ... extra-index-sym index-sym]
Given a type, index symbol, and a vector of array bindings, generate a map with keys: :start-sym - a symbol bound to the iteration start point :stop-sym - a symbol bound to the iteration stop point :initial-bindings - bindings [array-sym array-expr ... start-sym ... stop-sym ...] -- with array-sysm in the order provided in the input. :value-bindings - bindings [array-val array-sym ... extra-index-sym index-sym]
(primitive-type-info type)
Produce an map of helpers for an array type
Produce an map of helpers for an array type
(typed-gensym basis tag)
Generate a type-hinted symbol.
Generate a type-hinted symbol.
(value-cast type expr)
Produce an unchecked cast for the value of a given type
Produce an unchecked cast for the value of a given type
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close