ClojureDocs

Search results for query: update

1 to 9 of 9 results. prev page | next page

  • update

    clojure.core

    • (update m k f)
    • (update m k f x)
    • (update m k f x y)
    • (update m k f x y z)
    • (update m k f x y z & more)

    'Updates' a value in an associative structure, where k is a key and f is a function that will take the old value and any supplied args and return the new value, and returns a new structure. If the key does not exist, nil is passed as the old value.

  • updatecg

    clojure.core.logic

    • (updatecg c)

    0 examples
  • update-in

    clojure.core

    • (update-in m ks f & args)

    'Updates' a value in a nested associative structure, where ks is a sequence of keys and f is a function that will take the old value and any supplied args and return the new value, and returns a new nested structure. If any levels do not exist, hash-maps will be created.

  • update-dom

    clojure.core.logic

    • (update-dom s x dom f)
    • (update-dom s x dom f seenset)

    0 examples
  • update-vals

    clojure.core

    • (update-vals m f)

    m f => {k (f v) ...} Given a map m and a function f of 1-argument, returns a new map where the keys of m are mapped to result of applying f to the corresponding values of m.

    1 example · See also: clojure.core/update-keys
  • update-keys

    clojure.core

    • (update-keys m f)

    m f => {(f k) v ...} Given a map m and a function f of 1-argument, returns a new map whose keys are the result of applying f to the keys of m, mapped to the corresponding values of m. f must return a unique key for each key of m, else the behavior is undefined.

  • update-eset

    clojure.core.logic

    • (update-eset s doms eset)

    0 examples
  • update-proxy

    clojure.core

    • (update-proxy proxy mappings)

    Takes a proxy instance and a map of strings (which must correspond to methods of the proxy superclass/superinterfaces) to fns (which must take arguments matching the corresponding method, plus an additional (explicit) first arg corresponding to this, and updates (via assoc) the proxy's fn ma...

    1 example · See also: clojure.core/init-proxy
  • update-pvars!

    clojure.core.logic

    • (update-pvars! x vars)

    0 examples
prev page | next page