pub fn removeNext(node: *Node) ?*Node
Remove the node after the one provided, returning it.
node: *Node
34 35 36 37 38
pub fn removeNext(node: *Node) ?*Node { const next_node = node.next orelse return null; node.next = next_node.next; return next_node; }
Remove the node after the one provided, returning it.