Packages

object Range extends java.io.Serializable

Companion object for ranges.

Source
Range.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Range
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class Exclusive extends Range
    Annotations
    @SerialVersionUID()
  2. final class Inclusive extends Range
    Annotations
    @SerialVersionUID()
  3. final class Partial[T, U] extends AnyVal

Value Members

  1. def apply(start: Int, end: Int): Exclusive

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

  2. 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.

    Note

    step != 0

  3. def count(start: Int, end: Int, step: Int): Int
  4. 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.

  5. def inclusive(start: Int, end: Int): Inclusive

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

  6. 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.

    Note

    step != 0

  7. object BigDecimal
  8. object BigInt
  9. object Int
  10. object Long