(+field-function ??)
()
cache for hara.object.framework.struct/field-function
cache for hara.object.framework.struct/field-function
(+getter-function ??)
()
cache for hara.object.framework.struct/getter-function
cache for hara.object.framework.struct/getter-function
(dir obj)
(dir obj path)
explores the fields of a object given a path
(dir "string" [])
(dir "string" [:hash])
explores the fields of a object given a path (dir "string" []) (dir "string" [:hash])
(field-function k cls)
creates a field access function
((field-function :value String) "hello") => bytes
creates a field access function ((field-function :value String) "hello") => bytes
(field-function-raw k cls)
helper function for hara.object.framework.struct/field-function
helper function for hara.object.framework.struct/field-function
(getter-function k)
creates a getter function for a keyword
(getter-function :class) => fn?
creates a getter function for a keyword (getter-function :class) => fn?
(getter-function-raw k)
helper function for hara.object.framework.struct/getter-function
helper function for hara.object.framework.struct/getter-function
(struct-accessor spec)
(struct-accessor spec access)
creates an accessor function
((struct-accessor {:value [:data] :msg [:detail-message :value]} :field) (ex-info "hello" {:a 1})) => (contains {:value {:a 1}, :msg bytes?})
creates an accessor function ((struct-accessor {:value [:data] :msg [:detail-message :value]} :field) (ex-info "hello" {:a 1})) => (contains {:value {:a 1}, :msg bytes?})
(struct-field-functions ks cls)
constructs fields access functions
(struct-field-functions [:detail-message :value] clojure.lang.ExceptionInfo)
constructs fields access functions (struct-field-functions [:detail-message :value] clojure.lang.ExceptionInfo)
(struct-fields spec obj)
creates a struct given an object and a field map
(struct-fields {:depth []} (ex-info "hello" {:a 1})) => (contains {:depth number?})
(struct-fields {:msg [:detail-message :value]} (ex-info "hello" {:a 1})) => (contains {:msg bytes?})
creates a struct given an object and a field map (struct-fields {:depth []} (ex-info "hello" {:a 1})) => (contains {:depth number?}) (struct-fields {:msg [:detail-message :value]} (ex-info "hello" {:a 1})) => (contains {:msg bytes?})
(struct-getters spec obj)
creates a struct given an object and a getter map
(struct-getters {:value [:data] :message [] :class {:name []}} (ex-info "hello" {:a 1})) => {:value {:a 1}, :message "hello", :class {:name "clojure.lang.ExceptionInfo"}}
creates a struct given an object and a getter map (struct-getters {:value [:data] :message [] :class {:name []}} (ex-info "hello" {:a 1})) => {:value {:a 1}, :message "hello", :class {:name "clojure.lang.ExceptionInfo"}}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close