(assoc data key val)
(assoc data key val & key-vals)
Returns a diff which represents an assoc on a map or a vector, depending on the type of a given data.
Returns a diff which represents an assoc on a map or a vector, depending on the type of a given data.
(assoc-in data keys val)
Returns a diff which represents an assoc-in on a given data.
Returns a diff which represents an assoc-in on a given data.
(let bindings body)
This macro allows to compose diffs at compile time, for a better performance. It only works with static keys and indexes. The values to assoc or insert have to be defined in the bindings.
This macro allows to compose diffs at compile time, for a better performance. It only works with static keys and indexes. The values to assoc or insert have to be defined in the bindings.
(map-assoc key val & key-vals)
Returns a diff which represents the assoc operation on a map.
Returns a diff which represents the assoc operation on a map.
(map-dissoc key & keys)
Returns a diff which represents the dissoc operation on a map.
Returns a diff which represents the dissoc operation on a map.
(map-update key diff & key-diffs)
Returns a diff representing an update.
Returns a diff representing an update.
Returns a diff which represent the removal of a previously existing value. This diff is expected to be used only at the top level of any diff hierarchy.
Returns a diff which represent the removal of a previously existing value. This diff is expected to be used only at the top level of any diff hierarchy.
(set-conj val & vals)
Returns a diff which represents the conj operation on a set.
Returns a diff which represents the conj operation on a set.
(set-disj val & vals)
Returns a diff which represents the disj operation on a set.
Returns a diff which represents the disj operation on a set.
(update data key diff)
Returns a diff which represents an update on a map or a vector, depending on the type of a given data.
Returns a diff which represents an update on a map or a vector, depending on the type of a given data.
(update-in data keys f-diff & args)
Returns a diff which represents an update-in on a given data.
Returns a diff which represents an update-in on a given data.
(value val)
Returns a diff which represent a replacement by a given value. This diff is expected to be used only at the top level of any diff hierarchy.
Returns a diff which represent a replacement by a given value. This diff is expected to be used only at the top level of any diff hierarchy.
(vec-assoc index val)
(vec-assoc index val & index-vals)
Returns a diff which represents an assoc on a vector.
Returns a diff which represents an assoc on a vector.
(vec-insert index insert-coll)
Returns a diff which represents an range-insert on a vector.
Returns a diff which represents an range-insert on a vector.
(vec-remove index remove-count)
Returns a diff which represents an range-remove on a vector.
Returns a diff which represents an range-remove on a vector.
(vec-remsert index remove-count insert-coll)
Returns a diff which represents a remove followed by an insert at a given index.
Returns a diff which represents a remove followed by an insert at a given index.
(vec-update index diff & diffs)
Returns a diff representing updates at a given index.
Returns a diff representing updates at a given index.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close