Alternative and simpler approach is to use something like @stepthrough to implement traversal in code.
Alternative and simpler approach is to use something like @stepthrough to implement traversal in code.