Actually a pretty elegant operation. How would you do it for a singly-linked list?