scala.collection.immutable

object Range

[source: scala/collection/immutable/Range.scala]

object Range
extends AnyRef
Method Summary
def apply (start : Int, end : Int, step : Int) : Range
Make a range from `start` until `end` (exclusive) with step value 1.
def apply (start : Int, end : Int) : Range with ByOne
Make an range from `start` to `end` inclusive with step value 1.
def inclusive (start : Int, end : Int, step : Int) : Inclusive
Make an inclusive range from start to end with given step value.
def inclusive (start : Int, end : Int) : Inclusive with ByOne
Make an inclusive range from start to end with step value 1.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
trait ByOne extends Range
class Inclusive (start : Int, end : Int, step : Int) extends Range
class Partial [T, U](f : (T) => U) extends AnyRef
Object Summary
object BigDecimal extends AnyRef
object BigInt extends AnyRef
object Double extends AnyRef
object Int extends AnyRef
object Long extends AnyRef
Method Details
def apply(start : Int, end : Int, step : Int) : Range
Make a range from `start` until `end` (exclusive) with step value 1.

def apply(start : Int, end : Int) : Range with ByOne
Make an range from `start` to `end` inclusive with step value 1.
Precondition
end != MaxInt

def inclusive(start : Int, end : Int, step : Int) : Inclusive
Make an inclusive range from start to end with given step value.
Precondition
step != 0
if (step > 0) end != MaxInt else end != MinInt

def inclusive(start : Int, end : Int) : Inclusive with ByOne
Make an inclusive range from start to end with step value 1.
Precondition
end != MaxInt