Traversing the tree in a post-order traversal

I wanted to traverse the tree using a post-order traversal. The documentation mentions that the current traversal with cursor’s next and prev implements a pre-order traversal. Could you please point me to a direction to traverse the tree in a post-order manner?

The easiest way would be to just use the iterate method with a leave callback.

1 Like