collectAll

inline fun <T : Node> collectAll(): List<T>

Collects all the visited nodes of type T into a collection.

Return

an ordered list (DFS order) containing all the visited nodes of type T in the tree

Parameters

T

node type