Liking cljdoc? Tell your friends :D

b12n.swiza.commons.core-utils


assoc-someclj

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

config-for-envclj

(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")
sourceraw docstring

default-optionsclj

(default-options config env & [opts])
source

expand-pathclj

(expand-path filename)
source

load-edn-configclj

(load-edn-config config)

Load the edn config from a given file.

Load the edn config from a given file.
sourceraw docstring

map-keysclj

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

map-valsclj

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

read-jsonclj

(read-json file)

Read data as JSON from string or file

Read data as JSON from string or file
sourceraw docstring

remove-nilclj

(remove-nil input-map)

Remove nil value from a given map

Remove nil value from a given map
sourceraw docstring

write-jsonclj

(write-json file data)

Write data as JSON to file

Write data as JSON to file
sourceraw docstring

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

× close