Range

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

Companion object for ranges.

Attributes

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

Members list

Type members

Classlikes

object BigDecimal

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
BigDecimal.type
object BigInt

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
BigInt.type
object Int

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Int.type
object Long

Attributes

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

Attributes

Supertypes
class AnyVal
trait Matchable
class Any

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.

Attributes

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.

Attributes

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.

Attributes

def count(start: Int, end: Int, step: Int): Int

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

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