(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})
(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})
(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)}
(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}
(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]})
(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]})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close