Navigate from a node to its last child N times to reach the Nth level of the tree, or throw an exception if there is a leaf on the path from root to its Nth last child down.
When n is zero, the zipper is returned unchanged.
n
Will throw an exception on negative indexes.
Unsafe version of tryLastN.
The underlying type of the tree.
The zipper that will be navigated.
Number of tree levels to descend.
An updated zipper pointing at a new focus.
Navigate from a node to its last child N times to reach the Nth level of the tree, or throw an exception if there is a leaf on the path from root to its Nth last child down.
When
nis zero, the zipper is returned unchanged.Will throw an exception on negative indexes.
Unsafe version of tryLastN.
Type Param: A
The underlying type of the tree.
Param: self
The zipper that will be navigated.
Param: n
Number of tree levels to descend.
Returns
An updated zipper pointing at a new focus.