Function layout_2013::linked_list::split_off_head

source ยท
pub fn split_off_head<T>(list: &mut LinkedList<T>) -> LinkedList<T>
Expand description

Splits the head off a list in O(1) time, and returns the head.