Companion object for ranges.
| Supertypes | |
|---|---|
| Self type |
Make a range from start until end (exclusive) with given step value.
| Note | step != 0 |
|---|
Make a range from start until end (exclusive) with step value 1.
Counts the number of range elements. precondition: step != 0 If the size of the range exceeds Int.MaxValue, the result will be negative.
Make an inclusive range from start to end with given step value.
| Note | step != 0 |
|---|
Make an inclusive range from start to end with step value 1.
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/collection/immutable/Range$.html