utils.core

->edn-str

(->edn-str v)

->tile

(->tile position)

assoc-ks

(assoc-ks m ks v)

bind-root

(bind-root avar value)

define-order

(define-order order-k-vector)

dev-mode?

find-first

(find-first pred coll)

Returns the first item of coll for which (pred item) returns logical true. Consumes sequences up to the first match, will consume the entire sequence and return nil if no match is found.

get-namespaces

(get-namespaces packages)

get-vars

(get-vars nmspace condition)

index-of

(index-of k v)

indexed

(indexed s)

Returns a lazy sequence of index, item pairs, where items come from ā€˜sā€™ and indexes count up from zero.

(indexed ā€™(a b c d)) => (0 a 1 b 2 c 3 d)

k->pretty-name

(k->pretty-name k)

readable-number

(readable-number x)

remove-one

(remove-one coll item)

safe-get

(safe-get m k)

safe-merge

(safe-merge m1 m2)

sort-by-order

(sort-by-order coll get-item-order-k order)

tile->middle

(tile->middle position)

truncate

(truncate s limit)

utils-positions

(utils-positions pred coll)

Returns a lazy sequence containing the positions at which pred is true for items in coll.

when-seq

macro

(when-seq [aseq bind] & body)