void each<T>(Iterable<T> list, void Function(T, int) call) { int i = 0; for (var ele in list) { call.call(ele, i); i++; } }