return the indices, that satisfy the condition
Iterable<int> findIndices(bool Function(T element) test) sync* { var index = 0; for (var element in this) { index++; if (test(element)) yield index; } }