TraversalStrategy
public protocol TraversalStrategy
Pluggable Traversal Strategy protocol
-
Given a root tree node, returns a traversal sequnce of the child nodes
Declaration
Swift
static func traversalSequence<Node: BinaryTree>(_ rootNode: Node) -> AnySequence<Node>