shift<T> function

T shift<T>(
  1. List<T> list
)

Implementation

T shift<T>(List<T> list) => list.removeAt(0);