(contains-in? m k-path)
checks whether the nested key exists in a map
checks whether the nested key exists in a map
(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}
(load-env & configs)
Generate a map of environment variables.
Generate a map of environment variables.
(str->value v)
ENV vars and system properties are strings. str->value will convert: the numbers to longs, the alphanumeric values to strings, and will use Clojure reader for the rest in case reader can't read OR it reads a symbol, the value will be returned as is (a string)
ENV vars and system properties are strings. str->value will convert: the numbers to longs, the alphanumeric values to strings, and will use Clojure reader for the rest in case reader can't read OR it reads a symbol, the value will be returned as is (a string)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close