4 ms·
You can always pass in an iterator tracker via the following, much cleaner!; for (value, index) in arr.enumerated() { // Loop body }
by AJRF 7y ago
You can always pass in an iterator tracker via the following, much cleaner!;
for (value, index) in arr.enumerated() { // Loop body }