childrenBreadthFirst
Return
a sequence of child nodes of this Node in breadth-first order. The sequence starts with all the child nodes of this Node, followed by all the child nodes of the first child node, and so on.
inline fun Node.childrenBreadthFirst(crossinline predicate: (Node) -> Boolean): Sequence<Node>(source)
Return
a sequence of child nodes of this Node in breadth-first order that satisfy the given predicate. The sequence starts with all the child nodes of this Node, followed by all the child nodes of the first child node, and so on.
Parameters
predicate
stops visiting child nodes of the parent of the given node once this predicate returns false