skipLast method

Iterable<E> skipLast(
  1. int count
)

Returns the list prefix without the last count elements. If count is larger than length return the empty list.

Implementation

Iterable<E> skipLast(int count) => getRange(0, max(length - count, 0));