(-auto-props ns props defaults-qualified)
qualify any unqualified keys to the current ns and then add qualified defaults
qualify any unqualified keys to the current ns and then add qualified defaults
(auto-props props)
(auto-props props defaults-qualified)
(auto-props ns props defaults-qualified)
(has-ns? ns named)
State if a named
value (keyword or symbol) has such namespace ns
.
ns
can be be a string, or a non-namespaced keyword or symbol.
State if a `named` value (keyword or symbol) has such namespace `ns`. `ns` can be be a string, or a non-namespaced keyword or symbol.
(index xs)
index a sequential collection into an associative collection with explicit keys. this may not be useful, as vectors are already associative
index a sequential collection into an associative collection with explicit keys. this may not be useful, as vectors are already associative
(orp pred)
(orp pred x)
(orp pred x & next)
clojure.core/or
evaluates arguments one by one, returning the first truthy
one and so leaving the remaining ones unevaluated. orp
does the same but
with a custom predicate.
`clojure.core/or` evaluates arguments one by one, returning the first truthy one and so leaving the remaining ones unevaluated. `orp` does the same but with a custom predicate.
(qualify ns ?kw)
Qualify a keyword with a namespace. If already qualified, leave kw untouched. Nil-safe. (qualify :db :isComponent) -> :db/isComponent
Qualify a keyword with a namespace. If already qualified, leave kw untouched. Nil-safe. (qualify :db :isComponent) -> :db/isComponent
(select-ns ns map)
Like select-keys
but select all namespaced keys by ns.
Like `select-keys` but select all namespaced keys by ns.
(unqualify ?qualified-kw)
Strip namespace from keyword, discarding it and return unqualified keyword. Nil-safe. (unqualify :db.type/ref) -> :ref
Strip namespace from keyword, discarding it and return unqualified keyword. Nil-safe. (unqualify :db.type/ref) -> :ref
(xorxs xorxs & [zero])
an argument parser that accepts both scalars and collections, lifting scalars into a collection
an argument parser that accepts both scalars and collections, lifting scalars into a collection
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close