Return the Nth child tree of a tree or Option.none() if index is out-of-bounds or if given tree is a leaf.
Option.none()
Negative indexes are handled as offsets from the end of the forest with -1 being the last child, -2 the child before it, and so on.
-1
-2
Underlying tree type.
index of requested node in parent forest. Negative indexes are accepted.
Node will be taken from this tree's forest.
An optional tree.
Return the Nth child tree of a tree or
Option.none()if index is out-of-bounds or if given tree is a leaf.Negative indexes are handled as offsets from the end of the forest with
-1being the last child,-2the child before it, and so on.Type Param: A
Underlying tree type.
Param: n
index of requested node in parent forest. Negative indexes are accepted.
Param: self
Node will be taken from this tree's forest.
Returns
An optional tree.