(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.
(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.
(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
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close