Returns the list prefix without the last count elements. If count is larger than length return the empty list.
count
Iterable<E> skipLast(int count) => getRange(0, max(length - count, 0));