(env? x)Returns true if x is an environment variable reference (env:VAR_NAME) with a non-empty var name.
Returns true if x is an environment variable reference (env:VAR_NAME) with a non-empty var name.
(ref? x)Returns true if x is a reference string (ref:name) with a non-empty name.
Returns true if x is a reference string (ref:name) with a non-empty name.
(resolve-env-var x)Resolves an environment variable reference to its value. Returns the value from the environment, or nil if x is not an env var or the var is not set.
Resolves an environment variable reference to its value. Returns the value from the environment, or nil if x is not an env var or the var is not set.
(unref x)Strips the 'ref:' prefix from a reference string. Returns the name portion, or nil if x is not a ref.
Strips the 'ref:' prefix from a reference string. Returns the name portion, or nil if x is not a ref.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |