(clone obj)(copy obj source)(copy obj source ks)sets the value of a given field
(-> (mutable/set -h- :name "cat") :name) => "cat"
sets the value of a given field
(-> (mutable/set -h- :name "cat")
    :name)
=> "cat"(defmutable tp-name fields & protos)allows definition of a mutable datastructure
(defmutable Hello [name value])
(def -h- (Hello. "dog" 1))
(get -h- :name) => "dog"
allows definition of a mutable datastructure (defmutable Hello [name value]) (def -h- (Hello. "dog" 1)) (get -h- :name) => "dog"
(fields obj)(set obj m)(set obj k v)sets the value of a given field
(-> (mutable/set -h- :name "cat") :name) => "cat"
sets the value of a given field
(-> (mutable/set -h- :name "cat")
    :name)
=> "cat"(set-new obj m)(set-new obj k v)sets the value of a given field only when it is nil
(-> (Hello. "cat" nil) (mutable/set-new :name "dog") :name) => (throws)
sets the value of a given field only when it is nil
(-> (Hello. "cat" nil)
    (mutable/set-new :name "dog")
    :name)
=> (throws)(update obj k f & args)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |