object Range
Companion object for ranges.
Companion object for ranges.
- Companion
- class
Type members
Value members
Concrete methods
Make a range from start
until end
(exclusive) with given step value.
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.
Make a range from start
until end
(exclusive) with step value 1.
Counts the number of range elements.
Counts the number of range elements. precondition: step != 0 If the size of the range exceeds Int.MaxValue, the result will be negative.