(assoc-in! ks v)
Associates a value in the session, where ks is a sequence of keys and v is the new value and returns a new nested structure. If any levels do not exist, hash-maps will be created.
Associates a value in the session, where ks is a sequence of keys and v is the new value and returns a new nested structure. If any levels do not exist, hash-maps will be created.
(clear!)
Remove all data from the session and start over cleanly.
Remove all data from the session and start over cleanly.
(cursor ks)
Returns a cursor from the state atom.
Returns a cursor from the state atom.
(get k & [default])
Get the key's value from the session, returns nil if it doesn't exist.
Get the key's value from the session, returns nil if it doesn't exist.
(get! k & [default])
Destructive get from the session. This returns the current value of the key and then removes it from the session.
Destructive get from the session. This returns the current value of the key and then removes it from the session.
(get-in ks & [default])
Gets the value at the path specified by the vector ks from the session, returns nil if it doesn't exist.
Gets the value at the path specified by the vector ks from the session, returns nil if it doesn't exist.
(get-in! ks & [default])
Destructive get from the session. This returns the current value of the path specified by the vector ks and then removes it from the session.
Destructive get from the session. This returns the current value of the path specified by the vector ks and then removes it from the session.
(remove! k)
Remove a key from the session
Remove a key from the session
(swap! f & args)
Replace the current session's value with the result of executing f with the current value and args.
Replace the current session's value with the result of executing f with the current value and args.
(update! k f & args)
Updates a value in session where k is a key and f is the function that takes the old value along with any supplied args and return the new value. If key is not present it will be added.
Updates a value in session where k is a key and f is the function that takes the old value along with any supplied args and return the new value. If key is not present it will be added.
(update-in! ks f & args)
Updates a value in the session, where ks is a sequence of keys and f is a function that will take the old value along with any supplied args and return the new value. If any levels do not exist, hash-maps will be created.
Updates a value in the session, where ks is a sequence of keys and f is a function that will take the old value along with any supplied args and return the new value. If any levels do not exist, hash-maps will be created.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close