TakeSkipListExtension<E> extension

on

Methods

skipLast(int count) Iterable<E>
Returns the list prefix without the last count elements. If count is larger than length return the empty list.
skipLastTo(E element) Iterable<E>
Returns the list prefix before the last occurrence of element. If the element is not found return the empty list.
skipTo(E element) Iterable<E>
Returns the list suffix after the first occurrence of element. If the element is not found return the empty list.
takeLast(int count) Iterable<E>
Returns the list suffix with count elements. If count is larger than length return the whole list.
takeLastTo(E element) Iterable<E>
Returns the list suffix after the last occurrence of element. If the element is not found return the whole list.
takeTo(E element) Iterable<E>
Returns the list prefix up to the first occurrence of element. If the element is not found return the whole list.