tail function

List tail(
  1. List list
)

Gets all but the first element of list. Example

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

Implementation

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