drop method

List<E> drop(
  1. int n
)

Returns a list containing all elements except the first n elements.

Implementation

List<E> drop(int n) {
  if (n <= 0) return toList();
  if (n >= length) return [];
  return skip(n).toList();
}