Liking cljdoc? Tell your friends :D

envoy.tools


clean-slashclj

(clean-slash path)
source

concat-with-slashclj

(concat-with-slash s1 s2)
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

dissoc-inclj

(dissoc-in m [k & ks :as keys])

from https://github.com/clojure/core.incubator dissociates an entry from a nested associative structure returning a new nested structure. keys is a sequence of keys. Any empty maps that result will not be present in the new structure.

from https://github.com/clojure/core.incubator
dissociates an entry from a nested associative structure returning a new
nested structure. keys is a sequence of keys. Any empty maps that result
will not be present in the new structure.
sourceraw docstring

fmkclj

(fmk m f)

apply f to each key k of map m

apply f to each key k of map m
sourceraw docstring

include-explicit-nilsclj

(include-explicit-nils map-with-nils)

There are certain scnearios, where Configuration from CONSUL should support explicit nil values Replace explicit nil [case insensitive] value with nil

There are certain scnearios, where Configuration from CONSUL should support explicit `nil` values
Replace explicit `nil` [case insensitive] value with nil
sourceraw docstring

key->propclj

(key->prop k)
source

keys-inclj

(keys-in m)
source

(link connect from [to value])
source

map->propsclj

(map->props m & [serializer])
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

props->mapclj

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

remove-nilsclj

(remove-nils m)
source

serialize-mapclj

(serialize-map m & [serializer])
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