bothack.util

backspace

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)

enum->kw

esc

find-first

(find-first p s)

first-min-by

(first-min-by f coll)

firstv

(firstv v)

indexed

(indexed coll)

keep-first

(keep-first p s)

kw->enum

last-word

(last-word s)

less-than?

(less-than? n coll)
Does coll have less than n elements?

max*

(max* x y)

max-by

(max-by f coll)

min-by

(min-by f coll)

more-than?

(more-than? n coll)
Does coll have more than n elements?

not-any-fn?

(not-any-fn? & fns)

parse-int

(parse-int x)

priority-bottom

priority-default

priority-top

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)

secondv

(secondv v)

select-some

(select-some m ks)
Like select-keys but only selects keys with non-nil values

str->kw

(str->kw s)

Type

protocol

members

typekw

(typekw this)

update

(update m k f & args)

vi-directions