tailList<T> function

List<T>? tailList<T>(
  1. Iterable<T> it
)

Returns everything but the first element.

Implementation

List<T>? tailList<T>(Iterable<T> it) {
  if (it.isEmpty) {
    return null;
  }
  List<T> copy = List.from(it);
  copy.removeAt(0);
  return copy;
}