reverse function

void reverse (List list, [ int start = 0, int end ])

Reverses a list, or a part of a list, in-place.

Implementation

void reverse(List list, [int start = 0, int end]) {
  if (end == null) end = list.length;
  _reverse(list, start, end);
}