tail function

List tail (
  1. List array
)

Gets all but the first element of array. Example

_.tail([1, 2, 3]);
// Returns [2, 3]

Implementation

List tail(List array) {
  array.removeAt(0);
  return array;
}