backwardsList<T> function

List<T> backwardsList<T>(
  1. Iterable<T> l
)

Reversed, return List.

Implementation

List<T> backwardsList<T>(Iterable<T> l) {
  return l.isEmpty ? [] : l.toList().reversed.toList();
}