(assoc* m k expr & kvs)
Returns persistent map with delayed evaluations of the expr
under the key
k
. Accepts multiple key/expr pairs.
Returns persistent map with delayed evaluations of the `expr` under the key `k`. Accepts multiple key/expr pairs.
(init m)
Returns persistent map with every value wrapped with delayed evaluation.
Fir example in
(def my-map (init {:a (doto :x println)}))
the expression (doto :x println)
will be evaluated only when value for :a
requested, i.e. in (get my-map :a)
.
Returns persistent map with every value wrapped with delayed evaluation. Fir example in (def my-map (init {:a (doto :x println)})) the expression `(doto :x println)` will be evaluated only when value for `:a` requested, i.e. in `(get my-map :a)`.
(merge* m1 m2)
Given two maps with possibly delayed values returns merged persistent map.
Given two maps with possibly delayed values returns merged persistent map.
(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)
Same as clojure.core/update
but with delayed application of the function f
.
Same as `clojure.core/update` but with delayed application of the function `f`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close