Liking cljdoc? Tell your friends :D

instacheck.util


flatten-textclj

(flatten-text tree & [sep])

Take a tree (sequences hierarchy) and flattens it all the way to a single string (optionally separated by sep). Empty values are removed.

Take a tree (sequences hierarchy) and flattens it all the way to
a single string (optionally separated by sep). Empty values are
removed.
sourceraw docstring

flatten-text*clj

(flatten-text* tree)

Take a tree (sequences hierarchy) and flattens it all the way to a single sequence of numbers and strings. Empty values are removed.

Take a tree (sequences hierarchy) and flattens it all the way to
a single sequence of numbers and strings. Empty values are removed.
sourceraw docstring

remove-keyclj

(remove-key tree k)

Walk a tree removing every key/value where key match k

Walk a tree removing every key/value where key match k
sourceraw docstring

tree-depsclj

(tree-deps trees)

Takes a structure like {:a tree-a :b tree-b :c tree-c} and returns a map like {:a #{:b :c} :b #{:c} :c #{}} which means that :a appears in tree-b and tree-c, :b appears in tree-c, but :c does not appear in tree-a or tree-b.

Takes a structure like {:a tree-a :b tree-b :c tree-c} and returns
a map like {:a #{:b :c} :b #{:c} :c #{}} which means that :a appears
in tree-b and tree-c, :b appears in tree-c, but :c does not appear
in tree-a or tree-b.
sourceraw docstring

tree-matchesclj

(tree-matches pred? tree)

Return seq of pred? matches for any node in the tree.

Return seq of pred? matches for any node in the tree.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close