Liking cljdoc? Tell your friends :D

envoy.tools


clean-slashclj

(clean-slash path)

cpath->kpathclj

(cpath->kpath cpath)

consul path to key path: i.e. "/foo/bar/baz" to [:foo :bar :baz]

consul path to key path: i.e. "/foo/bar/baz" to [:foo :bar :baz]
raw docstring

deep-merge-withclj

(deep-merge-with f & maps)

Like merge-with, but merges maps recursively, appling the given fn only when there's a non-map at a particular level. (deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4} {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}}) -> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}

Like merge-with, but merges maps recursively, appling the given fn
only when there's a non-map at a particular level.
(deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4}
             {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}})
-> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}
raw docstring

key->propclj

(key->prop k)

(link connect from [to value])

map->propsclj

(map->props m & [serializer])

merge-mapsclj

(merge-maps & m)

nest-mapclj

(nest-map m prefix)

given a prefix in a form of [:a :b :c] and a map, nests this map under {:a {:b {:c m}}}

given a prefix in a form of [:a :b :c] and a map, nests this map under
{:a {:b {:c m}}}
raw docstring

props->mapclj

(props->map read-from-consul & [deserializer])

remove-nilsclj

(remove-nils m)

serialize-mapclj

(serialize-map m & [serializer])

with-slashclj

(with-slash path)

adds a slash to the last position if it is not there

adds a slash to the last position if it is not there
raw docstring

without-slashclj

(without-slash path)
(without-slash path {:keys [slash] :or {slash :last}})

removes slash from either ':first' or ':last' (default) position in case it is there

removes slash from either ':first' or ':last' (default) position
in case it is there
raw docstring

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

× close