(assoc-some m k v)
(assoc-some m k v & kvs)
Associates a key with a value in a map, if and only if the value is not nil.
Associates a key with a value in a map, if and only if the value is not nil.
(config-for-env config env)
Get a base config for a given env. Example: (config-for-env "./config.edn" :test) or (config-for-env "./config.edn" "test")
Get a base config for a given env. Example: (config-for-env "./config.edn" :test) or (config-for-env "./config.edn" "test")
(load-edn-config config)
Load the edn config from a given file.
Load the edn config from a given file.
(map-keys f m)
Given a function and a map, returns the map resulting from applying the function to each key.
e.g. (map-keys name {:a 1 :b 2 :c 3}) ;;=> {"a" 1, "b" 2, "c" 3}
Given a function and a map, returns the map resulting from applying the function to each key. e.g. (map-keys name {:a 1 :b 2 :c 3}) ;;=> {"a" 1, "b" 2, "c" 3}
(map-vals f m)
Given a function and a map, returns the map resulting from applying the function to each value.
e.g. (map-vals inc {:a 1 :b 2 :c 3}) ;;=> {:a 2, :b 3, :c 4}
Given a function and a map, returns the map resulting from applying the function to each value. e.g. (map-vals inc {:a 1 :b 2 :c 3}) ;;=> {:a 2, :b 3, :c 4}
(read-json file)
Read data as JSON from string or file
Read data as JSON from string or file
(remove-nil input-map)
Remove nil value from a given map
Remove nil value from a given map
(write-json file data)
Write data as JSON to file
Write data as JSON to file
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close