scala.collection.immutable.NumericRange
See theNumericRange companion class
object NumericRange
A companion object for numeric ranges.
Attributes
- Companion
- class
- Graph
-
- Supertypes
- Self type
-
NumericRange.type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class NumericRange[T]trait Serializabletrait IndexedSeq[T]trait IndexedSeq[T]class AbstractSeq[T]trait Seq[T]trait Iterable[T]class AbstractSeq[T]trait Seq[T]trait Puretrait Equalsclass AbstractIterable[T]trait Iterable[T]trait IterableOnce[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class NumericRange[T]trait Serializabletrait IndexedSeq[T]trait IndexedSeq[T]class AbstractSeq[T]trait Seq[T]trait Iterable[T]class AbstractSeq[T]trait Seq[T]trait Puretrait Equalsclass AbstractIterable[T]trait Iterable[T]trait IterableOnce[T]class Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Calculates the number of elements in a range given start, end, step, and whether or not it is inclusive. Throws an exception if step == 0 or the number of elements exceeds the maximum Int.
Calculates the number of elements in a range given start, end, step, and whether or not it is inclusive. Throws an exception if step == 0 or the number of elements exceeds the maximum Int.
Attributes
In this article