in scala
object Predef

object Predef
extends Object
with ScalaObject

The Predef object provides definitions that are accessible in all Scala compilation units without explicit qualification.

Field Summary
  type Function
  type NullPointerException
  type Pair
  type String
  type Throwable
  type Triple
  type boolean
  type byte
  type char
  type double
  type float
  type int
  type long
  type short
  type unit

Method Summary
final def Array[A](xs: A*): Array[A]
     Create an array with given elements.
final def Pair[a,b](x: a, y: b): Tuple2[a,b]
final def Triple[a,b,c](x: a, y: b, z: c): Tuple3[a,b,c]
final def assert(assertion: Boolean): Unit
final def assert(assertion: Boolean, message: Any): Unit
final def error(message: String): All
final def exit: Unit
final def fst[a](x: a, y: Any): a
final def id[a](x: a): a
final def scd[a](x: Any, y: a): a
final def view(x: Int): Ordered[Int]
final def view(x: Char): Ordered[Char]
final def view(x: Long): Ordered[Long]
final def view(x: Float): Ordered[Float]
final def view(x: Double): Ordered[Double]
final def view(x: Boolean): Ordered[Boolean]
final def view[A](view: (A) => Ordered[A])(xs: Array[A]): Ordered[Array[A]]
final def view(x: String): Ordered[String]
final def view[A](xs: Array[A]): Seq[A]
final def view(str: String): Seq[Char]

Field Detail

byte

  type byte = Byte

short

  type short = Short

char

  type char = Char

int

  type int = Int

long

  type long = Long

float

  type float = Float

double

  type double = Double

boolean

  type boolean = Boolean

unit

  type unit = Unit

String

  type String = String

NullPointerException

  type NullPointerException = NullPointerException

Throwable

  type Throwable = Throwable

Pair

  type Pair = Tuple2[p,q]

Triple

  type Triple = Tuple3[a,b,c]

Function

  type Function = (a) => b
Method Detail

Pair

  final def Pair[a,b](x: a, y: b): Tuple2[a,b]

Triple

  final def Triple[a,b,c](x: a, y: b, z: c): Tuple3[a,b,c]

id

  final def id[a](x: a): a

fst

  final def fst[a](x: a, y: Any): a

scd

  final def scd[a](x: Any, y: a): a

Array

  final def Array[A](xs: A*): Array[A]
Create an array with given elements.
Parameters:
xs - the elements to put in the array
Returns:
the array containing elements xs.

error

  final def error(message: String): All

exit

  final def exit: Unit

assert

  final def assert(assertion: Boolean): Unit

assert

  final def assert(assertion: Boolean, message: Any): Unit

view

  final def view(x: Int): Ordered[Int]

view

  final def view(x: Char): Ordered[Char]

view

  final def view(x: Long): Ordered[Long]

view

  final def view(x: Float): Ordered[Float]

view

  final def view(x: Double): Ordered[Double]

view

  final def view(x: Boolean): Ordered[Boolean]

view

  final def view[A](view: (A) => Ordered[A])(xs: Array[A]): Ordered[Array[A]]

view

  final def view(x: String): Ordered[String]

view

  final def view[A](xs: Array[A]): Seq[A]

view

  final def view(str: String): Seq[Char]