shift<T> function
Implementation
T? shift<T>(List<T> l) {
if (l.isNotEmpty) {
final first = l.first;
l.removeAt(0);
return first;
}
return null;
}
T? shift<T>(List<T> l) {
if (l.isNotEmpty) {
final first = l.first;
l.removeAt(0);
return first;
}
return null;
}