|
Scala
1.2.0.1 |
|||
Method Summary | |
final
|
def apply[A](xs: A*): List[A]
Create a list with given elements. |
final
|
def flatten[a](l: List[List[a]]): List[a]
Concatenate all the elements of a given list of lists. |
final
|
def fromArray[a](arr: Array[a], start: Int, len: Int): List[a]
Converts a range of an array into a list. |
final
|
def fromIterator[a](it: Iterator[a]): List[a]
Converts an iterator to a list |
final
|
def fromString(str: String, separator: Char): List[String]
Parses a string which contains substrings separated by a separator character and returns a list of all substrings. |
final
|
def fromString(str: String): List[Char]
Returns the given string as a list of characters. |
final
|
def make[a](n: Int, elem: a): List[a]
Create a list containing several copies of an element. |
final
|
def range(from: Int, end: Int): List[Int]
Create a sorted list of all integers in a range. |
final
|
def range(from: Int, end: Int, step: Int): List[Int]
Create a sorted list of all integers in a range. |
final
|
def range(from: Int, end: Int, step: (Int) => Int): List[Int]
Create a sorted list of all integers in a range. |
final
|
def tabulate[a](n: Int, maker: (Int) => a): List[a]
Create a list by applying a function to successive integers. |
final
|
def toString(xs: List[Char]): String
Returns the given list of characters as a string. |
def toString(): String
|
|
final
|
def unzip[a,b](l: List[Tuple2[a,b]]): Tuple2[List[a],List[b]]
Transform a list of pair into a pair of lists. |
final
|
def view[a](view: (a) => Ordered[a])(x: List[a]): Ordered[List[a]]
Lists with ordered elements are ordered |
Method Detail |
final def apply[A](xs: A*): List[A]
xs
-
the elements to put in the list
final def range(from: Int, end: Int): List[Int]
from
-
the start value of the list
end
-
the end value of the list
final def range(from: Int, end: Int, step: Int): List[Int]
from
-
the start value of the list
end
-
the end value of the list
step
-
the increment value of the list
final def range(from: Int, end: Int, step: (Int) => Int): List[Int]
from
-
the start value of the list
end
-
the end value of the list
step
-
the increment function of the list
final def make[a](n: Int, elem: a): List[a]
n
-
the length of the resulting list
elem
-
the element composing the resulting list
final def tabulate[a](n: Int, maker: (Int) => a): List[a]
n
-
the length of the resulting list
maker
-
the procedure which, given an integer n, returns the
nth element of the resulting list, where n is in [0;n).
final def flatten[a](l: List[List[a]]): List[a]
l
-
the list of lists that are to be concatenated
final def unzip[a,b](l: List[Tuple2[a,b]]): Tuple2[List[a],List[b]]
l
-
the list of pairs to unzip
final def fromIterator[a](it: Iterator[a]): List[a]
it
-
the iterator to convert
it.next
final def fromArray[a](arr: Array[a], start: Int, len: Int): List[a]
arr
-
the array to convert
start
-
the first index to consider
len
-
the lenght of the range to convert
arr
in the same order
final def fromString(str: String, separator: Char): List[String]
str
-
the string to parse
separator
-
the separator character
final def fromString(str: String): List[Char]
str
-
the string to convert.
final def toString(xs: List[Char]): String
xs
-
the list to convert.
def toString(): String
final def view[a](view: (a) => Ordered[a])(x: List[a]): Ordered[List[a]]
|
Scala
1.2.0.1 |
|||