We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c39386 + 4df7057 commit bea10f2Copy full SHA for bea10f2
src/library/scala/collection/immutable/Range.scala
@@ -33,7 +33,13 @@ import scala.collection.parallel.immutable.ParRange
33
* `init`) are also permitted on overfull ranges.
34
*
35
* @param start the start of this range.
36
- * @param end the exclusive end of the range.
+ * @param end the end of the range. For exclusive ranges, e.g.
37
+ * `Range(0,3)` or `(0 until 3)`, this is one
38
+ * step past the last one in the range. For inclusive
39
+ * ranges, e.g. `Range.inclusive(0,3)` or `(0 to 3)`,
40
+ * it may be in the range if it is not skipped by the step size.
41
+ * To find the last element inside a non-empty range,
42
+ use `last` instead.
43
* @param step the step for the range.
44
45
* @author Martin Odersky
0 commit comments