rica.utils
Utility functions used throughout Rica.
coll-of-type?
(coll-of-type? coll dtype)
(coll-of-type? coll dtype allow-nil)
Returns true if all elements of coll are of type dtype. Returns false otherwise.
coll-types
(coll-types coll)
Returns all types present in collection, excluding nil.
keyword-to-str
(keyword-to-str keyword)
Converts a keyword to a string without the colon.
rows-to-column-vecs
(rows-to-column-vecs vec-of-row-maps)
Takes a vector of row maps and returns a map of column vectors.
transpose-vectors
(transpose-vectors nested-vectors)