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.
Method Summary
|
final
|
def Array[A<:Object](xs: A*): Array[A]
|
final
|
def Array(xs: Boolean*): Array[Boolean]
|
final
|
def Array(xs: Byte*): Array[Byte]
|
final
|
def Array(xs: Short*): Array[Short]
|
final
|
def Array(xs: Char*): Array[Char]
|
final
|
def Array(xs: Int*): Array[Int]
|
final
|
def Array(xs: Long*): Array[Long]
|
final
|
def Array(xs: Float*): Array[Float]
|
final
|
def Array(xs: Double*): Array[Double]
|
final
|
def Array(xs: Unit*): Array[Unit]
|
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 array2ordered[A](view: (A) => Ordered[A])(xs: Array[A]): Ordered[Array[A]]
|
final
|
def array2seq[A](xs: Array[A]): Seq[A]
|
final
|
def assert(assertion: Boolean): Unit
|
final
|
def assert(assertion: Boolean, message: Any): Unit
|
final
|
def boolean2ordered(x: Boolean): Ordered[Boolean]
|
final
|
def byte2double(x: Byte): Double
|
final
|
def byte2float(x: Byte): Float
|
final
|
def byte2int(x: Byte): Int
|
final
|
def byte2long(x: Byte): Long
|
final
|
def byte2short(x: Byte): Short
|
final
|
def char2double(x: Char): Double
|
final
|
def char2float(x: Char): Float
|
final
|
def char2int(x: Char): Int
|
final
|
def char2long(x: Char): Long
|
final
|
def char2ordered(x: Char): Ordered[Char]
|
final
|
def double2ordered(x: Double): Ordered[Double]
|
final
|
def error(message: String): All
|
final
|
def exit: All
|
final
|
def exit(status: Int): All
|
final
|
def float2double(x: Float): Double
|
final
|
def float2ordered(x: Float): Ordered[Float]
|
final
|
def fst[a](x: a, y: Any): a
|
final
|
def id[a](x: a): a
|
final
|
def identity[a](x: a): a
|
final
|
def int2double(x: Int): Double
|
final
|
def int2float(x: Int): Float
|
final
|
def int2long(x: Int): Long
|
final
|
def int2ordered(x: Int): Ordered[Int]
|
final
|
def long2double(x: Long): Double
|
final
|
def long2float(x: Long): Float
|
final
|
def long2ordered(x: Long): Ordered[Long]
|
final
|
def scd[a](x: Any, y: a): a
|
final
|
def short2double(x: Short): Double
|
final
|
def short2float(x: Short): Float
|
final
|
def short2int(x: Short): Int
|
final
|
def short2long(x: Short): Long
|
final
|
def string2ordered(x: String): Ordered[String]
|
final
|
def string2seq(str: String): Seq[Char]
|
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(x: String): Seq[Char]
|
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
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<:Object](xs: A*): Array[A]
Array
final def Array(xs: Boolean*): Array[Boolean]
Array
final def Array(xs: Byte*): Array[Byte]
Array
final def Array(xs: Short*): Array[Short]
Array
final def Array(xs: Char*): Array[Char]
Array
final def Array(xs: Int*): Array[Int]
Array
final def Array(xs: Long*): Array[Long]
Array
final def Array(xs: Float*): Array[Float]
Array
final def Array(xs: Double*): Array[Double]
Array
final def Array(xs: Unit*): Array[Unit]
error
final def error(message: String): All
exit
final def exit: All
exit
final def exit(status: Int): All
assert
final def assert(assertion: Boolean): Unit
assert
final def assert(assertion: Boolean, message: Any): Unit
identity
final def identity[a](x: a): a
int2ordered
final def int2ordered(x: Int): Ordered[Int]
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(x: String): Seq[Char]
char2ordered
final def char2ordered(x: Char): Ordered[Char]
long2ordered
final def long2ordered(x: Long): Ordered[Long]
float2ordered
final def float2ordered(x: Float): Ordered[Float]
double2ordered
final def double2ordered(x: Double): Ordered[Double]
boolean2ordered
final def boolean2ordered(x: Boolean): Ordered[Boolean]
array2ordered
final def array2ordered[A](view: (A) => Ordered[A])(xs: Array[A]): Ordered[Array[A]]
string2ordered
final def string2ordered(x: String): Ordered[String]
array2seq
final def array2seq[A](xs: Array[A]): Seq[A]
string2seq
final def string2seq(str: String): Seq[Char]
byte2short
final def byte2short(x: Byte): Short
byte2int
final def byte2int(x: Byte): Int
byte2long
final def byte2long(x: Byte): Long
byte2float
final def byte2float(x: Byte): Float
byte2double
final def byte2double(x: Byte): Double
short2int
final def short2int(x: Short): Int
short2long
final def short2long(x: Short): Long
short2float
final def short2float(x: Short): Float
short2double
final def short2double(x: Short): Double
char2int
final def char2int(x: Char): Int
char2long
final def char2long(x: Char): Long
char2float
final def char2float(x: Char): Float
char2double
final def char2double(x: Char): Double
int2long
final def int2long(x: Int): Long
int2float
final def int2float(x: Int): Float
int2double
final def int2double(x: Int): Double
long2float
final def long2float(x: Long): Float
long2double
final def long2double(x: Long): Double
float2double
final def float2double(x: Float): Double