Function findLast [src]
Iterate over the singly-linked list from this node, until the final
node is found.
This operation is O(N). Instead of calling this function, consider
using a different data structure.
Prototype
pub fn findLast(node: *Node) *Node
Parameters
node: *Node
Source
pub fn findLast(node: *Node) *Node {
var it = node;
while (true) {
it = it.next orelse return it;
}
}