(deep-merge & maps)
Like merge, but merges maps recursively. It merges the maps from left to right and the right-most value wins. It is useful to merge the user defined configuration on top of the default configuration.
Like merge, but merges maps recursively. It merges the maps from left to right and the right-most value wins. It is useful to merge the user defined configuration on top of the default configuration.
(defalias dest src)
Create a local var with the same value of a var from another namespace
Create a local var with the same value of a var from another namespace
(edn-str v & {:keys [pretty?] :or {pretty? false}})
Return a EDN representation of the given value.
Same as pr-str
but without ellipsis.
Return a EDN representation of the given value. Same as `pr-str` but without ellipsis.
(exception-stacktrace x)
returns a string representation of an exception and its stack-trace
returns a string representation of an exception and its stack-trace
(fast-assoc a k v)
Like assoc but only takes one kv pair. Slightly faster.
Like assoc but only takes one kv pair. Slightly faster.
(fast-map-merge x y)
Returns a map that consists of the second of the maps assoc-ed onto the first. If a key occurs in more than one map, the mapping from te latter (left-to-right) will be the mapping in the result.
Returns a map that consists of the second of the maps assoc-ed onto the first. If a key occurs in more than one map, the mapping from te latter (left-to-right) will be the mapping in the result.
(iso-datetime-from-millis millis)
Returns a ISO 8601 formatted string of the given UTC timestamp in milliseconds
Returns a ISO 8601 formatted string of the given UTC timestamp in milliseconds
(java-version)
It returns the current Java major version as a number
It returns the current Java major version as a number
(map-values f m)
Applies f to all the value of the map m
Applies f to all the value of the map m
(os-java-pid)
it returns the OS pid for the current java process.
it returns the OS pid for the current java process.
(pprint-event-str m)
pretty print event to a string
pretty print event to a string
(puid)
It returns a random 192-bit unique id
It returns a random 192-bit unique id
(random-uid)
It returns a random 128-bit unique id with a base 36 encoding
It returns a random 128-bit unique id with a base 36 encoding
(remove-nils m)
recursively remove nils from maps (in keys or values)
recursively remove nils from maps (in keys or values)
(thread-local)
(thread-local init)
A thread-local variable which can be deref'd
A thread-local variable which can be deref'd
(thread-local-binding binding & body)
Like the binding
macro but for thread-local vars. (only 1 binding is supported)
Like the `binding` macro but for thread-local vars. (only 1 binding is supported)
(uuid)
It returns a random UUID as string
It returns a random UUID as string
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close