Liking cljdoc? Tell your friends :D

hara.object.framework.map-like


extend-map-likecljmacro

(extend-map-like cls {:keys [read write proxy] :as opts})

creates an entry for map-like classes

(extend-map-like test.DogBuilder {:tag "build.dog" :write {:empty (fn [] (test.DogBuilder.)) :methods :class} :read :fields})

creates an entry for map-like classes

(extend-map-like test.DogBuilder
                 {:tag "build.dog"
                 :write {:empty (fn [] (test.DogBuilder.))
                          :methods :class}
                  :read :fields})
raw docstring

extend-map-readclj

(extend-map-read cls {:keys [read include exclude]})

creates the forms for read methods

(extend-map-read 'test.Cat {:read :fields})

creates the forms for read methods

(extend-map-read 'test.Cat {:read :fields})
raw docstring

extend-map-writeclj

(extend-map-write cls {:keys [write]})

creates the forms for write methods

(extend-map-write 'test.Cat {:write {:methods :class}}) => '{:methods (hara.object.framework.write/write-setters test.Cat)}

creates the forms for write methods

(extend-map-write 'test.Cat {:write {:methods :class}})
=> '{:methods (hara.object.framework.write/write-setters test.Cat)}
raw docstring

key-selectionclj

(key-selection m include exclude)

selects map based on keys

(key-selection {:a 1 :b 2} [:a] nil) => {:a 1}

(key-selection {:a 1 :b 2} nil [:a]) => {:b 2}

selects map based on keys

(key-selection {:a 1 :b 2} [:a] nil)
=> {:a 1}

(key-selection {:a 1 :b 2} nil [:a])
=> {:b 2}
raw docstring

read-proxy-functionsclj

(read-proxy-functions proxy)

creates a proxy access through a field in the object

(read-proxy-functions {:school [:name :raw]})

creates a proxy access through a field in the object

(read-proxy-functions {:school [:name :raw]})
raw docstring

write-proxy-functionsclj

(write-proxy-functions proxy)

creates a proxy access through a field in the object

(write-proxy-functions {:school [:name :raw]})

creates a proxy access through a field in the object

(write-proxy-functions {:school [:name :raw]})
raw docstring

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

× close