Range

scala.collection.immutable.Range$
See theRange companion class
object Range

Companion object for ranges.

Attributes

Companion:
class
Source:
Range.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Range.type

Members list

Concise view

Type members

Classlikes

object BigDecimal

Attributes

Source:
Range.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object BigInt

Attributes

Source:
Range.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BigInt.type
final class Exclusive(start: Int, end: Int, step: Int) extends Range

Attributes

Source:
Range.scala
Graph
Supertypes
final class Inclusive(start: Int, end: Int, step: Int) extends Range

Attributes

Source:
Range.scala
Graph
Supertypes
object Int

Attributes

Source:
Range.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Int.type
object Long

Attributes

Source:
Range.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Long.type
final class Partial[T, U](f: T => U) extends AnyVal

Attributes

Source:
Range.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def apply(start: Int, end: Int, step: Int): Exclusive

Make a range from start until end (exclusive) with given step value.

Make a range from start until end (exclusive) with given step value.

Attributes

Note:

step != 0

Source:
Range.scala
def apply(start: Int, end: Int): Exclusive

Make a range from start until end (exclusive) with step value 1.

Make a range from start until end (exclusive) with step value 1.

Attributes

Source:
Range.scala
def count(start: Int, end: Int, step: Int, isInclusive: Boolean): Int

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.

Attributes

Source:
Range.scala
def count(start: Int, end: Int, step: Int): Int

Attributes

Source:
Range.scala
def inclusive(start: Int, end: Int, step: Int): Inclusive

Make an inclusive range from start to end with given step value.

Make an inclusive range from start to end with given step value.

Attributes

Note:

step != 0

Source:
Range.scala
def inclusive(start: Int, end: Int): Inclusive

Make an inclusive range from start to end with step value 1.

Make an inclusive range from start to end with step value 1.

Attributes

Source:
Range.scala