loop<T> static method
Implementation
static void loop<T>(List<T> items, LooperCallback<T> callback){
int index = 0;
for(T item in items){
callback(item, index, index == 0, index == items.length - 1);
index++;
}
}
static void loop<T>(List<T> items, LooperCallback<T> callback){
int index = 0;
for(T item in items){
callback(item, index, index == 0, index == items.length - 1);
index++;
}
}