(create-temp-diretory!)
Creates a new readable/writable directory and returns its name as a java.io.File
. Throws an
exception if the temp directory could not be created.
Creates a new readable/writable directory and returns its name as a `java.io.File`. Throws an exception if the temp directory could not be created.
(merge-arglists-meta from-var)
Returns function which merges :arglists
meta from from-var
.
Example use:
(alter-meta! #'to-var (u!/merge-arglists-meta #'from-var))
Returns function which merges `:arglists` meta from `from-var`. Example use: (alter-meta! #'to-var (u!/merge-arglists-meta #'from-var))
(merge-docstring-meta from-var)
Returns function which merges :doc
meta from from-var
.
Example use:
(alter-meta! #'to-var (u!/merge-arglists-docstring #'from-var))
Returns function which merges `:doc` meta from `from-var`. Example use: (alter-meta! #'to-var (u!/merge-arglists-docstring #'from-var))
(side-effecting! f)
Returns argument after applying presumably side-effectful f
to it.
Returns argument after applying presumably side-effectful `f` to it.
(uuid)
Returns a random UUID as a string.
Returns a random UUID as a string.
(with-exception-logging form)
(with-exception-logging form finally-form)
(with-temp-directory! [dir & {:keys [keep-files?]}] & body)
Evaluates body
with dir
bound to a newly created, readable and writable directory. Upon exit
all files and directories in the temp directory are deleted unless keep-files?
has a truthy
value.
Evaluates `body` with `dir` bound to a newly created, readable and writable directory. Upon exit all files and directories in the temp directory are deleted unless `keep-files?` has a truthy value.
(wrap-report-and-absorb-exceptions f)
(wrap-report-and-absorb-exceptions return-value f)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close