(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]
(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}
(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.
(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
(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}}}
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close