ReturnCondition<T> typedef

ReturnCondition<T> = bool Function(T node)

Signature of a function that takes a T node and returns a bool.

Used when traversing the tree in breadth first order to decide whether the traversal should stop.

Implementation

typedef ReturnCondition<T> = bool Function(T node);