Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Can I send a pull request of List.getIndices() to GitHub?
The method name is from Haskell, Scala and Kotlin.
They all use "indices" not "indexes".
The implementation is this.
public static IntRange getIndices(List self) { return new IntRange(false, 0, self.size()); }
Usage:
for (i in [1, 2].indices) {}