Liking cljdoc? Tell your friends :D

clj-fast.lens

Code transformation functions which abstract over the behaviors of inlineable functions

Code transformation functions which abstract over the behaviors of inlineable
functions

get

(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))
raw docstring

get-some

(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))
raw docstring

put

(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.
raw docstring

update

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close