Liking cljdoc? Tell your friends :D

hara.object.framework.struct


*lead-class*clj


+field-functionclj

(+field-function ??)
?? invalid arglists:
()

cache for hara.object.framework.struct/field-function

cache for hara.object.framework.struct/field-function
raw docstring

+getter-functionclj

(+getter-function ??)
?? invalid arglists:
()

cache for hara.object.framework.struct/getter-function

cache for hara.object.framework.struct/getter-function
raw docstring

dirclj

(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])
raw docstring

field-functionclj

(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
raw docstring

field-function-rawclj

(field-function-raw k cls)

helper function for hara.object.framework.struct/field-function

helper function for hara.object.framework.struct/field-function
raw docstring

getter-functionclj

(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?
raw docstring

getter-function-rawclj

(getter-function-raw k)

helper function for hara.object.framework.struct/getter-function

helper function for hara.object.framework.struct/getter-function
raw docstring

struct-accessorclj

(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?})
raw docstring

struct-field-functionsclj

(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)
raw docstring

struct-fieldsclj

(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?})
raw docstring

struct-gettersclj

(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"}}
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close