elemIndicesList<T> function
List of every index of element
in it
Implementation
List<int> elemIndicesList<T>(T element, Iterable<T> it) {
List<int> result = [];
List<T> l = List.from(it);
for (int i = 0; i < l.length; i++) {
if (deepEquals(l[i], element)) {
result.add(i);
}
}
return result;
}