bothack.util
condp-all
macro
(condp-all pred expr & clauses)
Like condp but doesn't short-circuit (evaluates all matching clauses incl.
the default)
config-get
(config-get config key default)
(config-get config key)
Get a configuration key from the config map or return the default, without a
default throw an exception if the key is not present.
ctrl
(ctrl ch)
Returns a char representing CTRL+<ch>
dissoc-in
(dissoc-in m [k & ks :as keys])
Dissociates an entry from a nested associative structure returning a new
nested structure. keys is a sequence of keys. Any empty maps that result
will not be present in the new structure.
effective-str
(effective-str s)
find-first
(find-first p s)
first-min-by
(first-min-by f coll)
keep-first
(keep-first p s)
less-than?
(less-than? n coll)
Does coll have less than n elements?
more-than?
(more-than? n coll)
Does coll have more than n elements?
not-any-fn?
(not-any-fn? & fns)
random-nth
(random-nth coll)
re-any-group
(re-any-group re text)
Return the first non-nil capturing group of the first match.
re-first-group
(re-first-group re text)
Return the first capturing group of the first match or whole first match if
no groups
re-first-groups
(re-first-groups re text)
Return the capturing groups of the first match or whole first match if no groups
removev
(removev pred coll)
select-some
(select-some m ks)
Like select-keys but only selects keys with non-nil values
update
(update m k f & args)