Code transformation functions which abstract over the behaviors of inlineable functions
Code transformation functions which abstract over the behaviors of inlineable functions
(get f m ks)
Takes a function f, symbol m and sequence ks and constructs a nested get structure. f must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k))
Takes a function f, symbol m and sequence ks and constructs a nested get structure. f must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k))
(get-some f m ks)
Takes a function f, symbol m and sequence ks and constructs a linear get structure, as in some->. f must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k))
Takes a function f, symbol m and sequence ks and constructs a linear get structure, as in some->. f must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k))
(put putter getter m ks v)
Take two functions, putter and getter, symbol m, sequence ks and symbol v and constructs an assoc-in structure, as if inlining core Clojure's assoc-in. getter must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k))
similarly, putter must to the same with assoc.
Take two functions, putter and getter, symbol m, sequence ks and symbol v and constructs an assoc-in structure, as if inlining core Clojure's assoc-in. getter must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k)) similarly, putter must to the same with assoc.
(update putter getter m ks f args)
Take two functions, putter and getter, symbol m, sequence ks and symbol v and constructs an update-in structure, as if inlining core Clojure's update-in. getter must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k))
similarly, putter must to the same with assoc.
Take two functions, putter and getter, symbol m, sequence ks and symbol v and constructs an update-in structure, as if inlining core Clojure's update-in. getter must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k)) similarly, putter must to the same with assoc.
(update-many putter getter m kvs)
(update-many putter getter combiner m kvs)
Take two functions, putter and getter, symbol m, sequence of pairs of [ks v] such that every ks is a sequence of keys and v is an expression and constructs an assoc-in structure, as if inlining core Clojure's assoc-in in a minimal number of calls. getter must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k))
similarly, putter must to the same with assoc.
Take two functions, putter and getter, symbol m, sequence of pairs of [ks v] such that every ks is a sequence of keys and v is an expression and constructs an assoc-in structure, as if inlining core Clojure's assoc-in in a minimal number of calls. getter must be a mapping of (f sym k) -> get-expr, for example: (fn [sym k] `(get sym k)) similarly, putter must to the same with assoc.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close