Companion object for ranges.
Attributes
- Companion
- class
- Source
- Range.scala
- Graph
-
- Supertypes
- Self type
-
Range.type
Members list
Type members
Classlikes
Attributes
- Source
- Range.scala
- Supertypes
- Self type
-
BigDecimal.type
Attributes
- Source
- Range.scala
- Supertypes
- Self type
-
BigInt.type
Attributes
- Source
- Range.scala
- Supertypes
-
class Rangetrait Serializabletrait IndexedSeq[Int]trait IndexedSeq[Int]class AbstractSeq[Int]class AbstractSeq[Int]trait Puretrait Equalsclass AbstractIterable[Int]trait IterableOnce[Int]class Objecttrait Matchableclass AnyShow all
Attributes
- Source
- Range.scala
- Supertypes
-
class Rangetrait Serializabletrait IndexedSeq[Int]trait IndexedSeq[Int]class AbstractSeq[Int]class AbstractSeq[Int]trait Puretrait Equalsclass AbstractIterable[Int]trait IterableOnce[Int]class Objecttrait Matchableclass AnyShow all
Attributes
- Source
- Range.scala
- Supertypes
- Self type
-
Int.type
Attributes
- Source
- Range.scala
- Supertypes
- Self type
-
Long.type
Value members
Concrete methods
Makes a range from start until end (exclusive) with given step value.
Makes a range from start until end (exclusive) with given step value.
Value parameters
- end
-
the exclusive end value of the range
- start
-
the start value of the range
- step
-
the step value between consecutive elements, must be non-zero
Attributes
- Note
-
step != 0
- Source
- Range.scala
Makes a range from start until end (exclusive) with step value 1.
Makes a range from start until end (exclusive) with step value 1.
Value parameters
- end
-
the exclusive end value of the range
- start
-
the start value of the range
Attributes
- Source
- Range.scala
Counts the number of range elements. precondition: step != 0 If the size of the range exceeds Int.MaxValue, the result will be negative.
Counts the number of range elements. precondition: step != 0 If the size of the range exceeds Int.MaxValue, the result will be negative.
Value parameters
- end
-
the end value of the range (exclusive or inclusive depending on
isInclusive) - isInclusive
-
whether
endis included in the range - start
-
the start value of the range
- step
-
the step value between consecutive elements, must be non-zero
Attributes
- Source
- Range.scala
Makes an inclusive range from start to end with given step value.
Makes an inclusive range from start to end with given step value.
Value parameters
- end
-
the inclusive end value of the range
- start
-
the start value of the range
- step
-
the step value between consecutive elements, must be non-zero
Attributes
- Note
-
step != 0
- Source
- Range.scala
Makes an inclusive range from start to end with step value 1.
Makes an inclusive range from start to end with step value 1.
Value parameters
- end
-
the inclusive end value of the range
- start
-
the start value of the range
Attributes
- Source
- Range.scala