Liking cljdoc? Tell your friends :D

envoy.tools


clean-slashclj

(clean-slash path)
source

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]
sourceraw 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}
sourceraw docstring

key->propclj

(key->prop k)
source

(link connect from [to value])
source

map->propsclj

(map->props m)
source

merge-mapsclj

(merge-maps & m)
source

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}}}
sourceraw docstring

post-deserializeclj

(post-deserialize map deserializer)
source

pre-serializeclj

(pre-serialize map serializer)
source

props->mapclj

(props->map read-from-consul)
source

remove-nilsclj

(remove-nils m)
source

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
sourceraw 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
sourceraw docstring

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

× close