removeAfter

fun removeAfter(node: Node<T>): T?

Remove element after a node (remove the immediate next node). Time complexity O(1)

Return

T? element's value

Parameters

node

Node