std.lib.atom

atom-batch-fn

added in 4.0

(atom-batch-fn prev cmds)

constructs the output and next state for a batch operation

atom-delete-fn

added in 4.0

(atom-delete-fn prev paths)

constructs the output and next state for a delete operation

atom-put-fn

added in 4.0

(atom-put-fn prev path m)

constructs the output and next state for a put operation

atom-reduce-fn

added in 3.0

(atom-reduce-fn prev f tx entries)

helper function for mutations on atom

atom-set-fn

added in 4.0

(atom-set-fn prev paths)

constructs the output and next state for a set operation

atom-set-keys-fn

added in 4.0

(atom-set-keys-fn prev path m)

constructs the output and next state for a set-keys operation

atom-swap-fn

added in 4.0

(atom-swap-fn prev paths)

constructs the output and next state for a swap operation

atom:batch

added in 3.0

(atom:batch state cmds)

performs a batched operation given keys

atom:clear

added in 3.0

(atom:clear state path)

clears the previous entry

atom:cursor

added in 3.0

(atom:cursor ref selector)(atom:cursor ref selector key)

adds a cursor to the atom to swap on any change

atom:delete

added in 3.0

(atom:delete state path & more)

deletes individual enties from path

atom:derived

added in 3.0

(atom:derived atoms f)(atom:derived atoms f key)

constructs an atom derived from other atoms

atom:get

added in 3.0

(atom:get state path)

gets all the nested keys within an atom

atom:keys

added in 3.0

(atom:keys state path)

lists the nested keys of an atom

atom:mget

added in 3.0

(atom:mget state paths)

gets all the nested keys within an atom

atom:put

added in 3.0

(atom:put state path m)

puts an entry into the atom

atom:put-changed

added in 3.0

(atom:put-changed [old new])

figure out what has changed in put operation

atom:set

added in 3.0

(atom:set state path m & more)

sets the entries given a set of inputs

atom:set-changed

added in 3.0

(atom:set-changed outputs)

figure out what has changed in set

atom:set-keys

added in 3.0

(atom:set-keys state path m)

sets the entries given a set of inputs

atom:swap

added in 3.0

(atom:swap state path f & more)

swaps entries atomically given function

swap-return!

added in 3.0

(swap-return! atm f)(swap-return! atm f state?)

returns output and new state of atom

update-diff

added in 4.0

(update-diff m path f & args)

updates a diff in a sub nesting