tail function

List tail(
  1. List array
)

Gets all but the first element of array.

Implementation

List tail(List array) {
  return array.skip(1).toList();
}