Packages

object Range extends Serializable

A companion object for the Range class.

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

Type Members

  1. final class Inclusive extends Range
  2. final class Partial[T, U] extends AnyVal

Value Members

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

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

  2. def apply(start: Int, end: Int, step: Int): Range

    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.

  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 Double
  10. object Int
  11. object Long