|
Scala
1.4.0.3 |
|||
Method Summary | |
override
|
def /:[B](z: B)(f: (B,A) => B): B
Similar to foldLeft but can be used as
an operator with the order of list and zero arguments reversed.
|
override
|
def :\[B](z: B)(f: (A,B) => B): B
An alias for foldRight .
|
def elements: Iterator[A]
Creates a new iterator over all elements contained in this object. |
|
override
|
def exists(p: (A) => Boolean): Boolean
Apply a predicate p to all elements of this
iterable object and return true, iff there is at least one
element for which p yields true.
|
override
|
def find(p: (A) => Boolean): Option[A]
Find and return the first element of the iterable object satisfying a predicate, if any. |
override
|
def foldLeft[B](z: B)(op: (B,A) => B): B
Combines the elements of this list together using the binary operator op , from left to right, and starting with
the value z .
|
override
|
def foldRight[B](z: B)(op: (A,B) => B): B
Combines the elements of this list together using the binary operator op , from rigth to left, and starting with
the value z .
|
override
|
def forall(p: (A) => Boolean): Boolean
Apply a predicate p to all elements of this
iterable object and return true, iff the predicate yields
true for all elements.
|
override
|
def foreach(f: (A) => Unit): Unit
Apply a function f to all elements of this
iterable object.
|
override
|
def sameElements[B >: A](that: Iterable[B]): Boolean
Checks if the other iterable object contains the same elements. |
abstract
|
def self: Iterable[A]
|
Methods inherited from java/lang/Object-class |
clone, eq, finalize, getClass, ne, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
concat |
Methods inherited from scala/Proxy-class |
equals, hashCode, toString |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Method Detail |
abstract def self: Iterable[A]
def elements: Iterator[A]
override def foreach(f: (A) => Unit): Unit
f
to all elements of this
iterable object.
f
-
a function that is applied to every element.
override def forall(p: (A) => Boolean): Boolean
p
to all elements of this
iterable object and return true, iff the predicate yields
true for all elements.
p
-
the predicate
override def exists(p: (A) => Boolean): Boolean
p
to all elements of this
iterable object and return true, iff there is at least one
element for which p
yields true.
p
-
the predicate
override def find(p: (A) => Boolean): Option[A]
p
-
the predicate
p
,
or None
if none exists.
override def foldLeft[B](z: B)(op: (B,A) => B): B
op
, from left to right, and starting with
the value z
. op(... (op(op(z,a0),a1) ...), an)
if the list
is List(a0, a1, ..., an)
.
override def foldRight[B](z: B)(op: (A,B) => B): B
op
, from rigth to left, and starting with
the value z
. a0 op (... op (an op z)...)
if the list
is [a0, a1, ..., an]
.
override def /:[B](z: B)(f: (B,A) => B): B
foldLeft
but can be used as
an operator with the order of list and zero arguments reversed.
That is, z /: xs
is the same as xs foldLeft z
override def :\[B](z: B)(f: (A,B) => B): B
foldRight
.
That is, xs :\ z
is the same as xs foldRight z
override def sameElements[B >: A](that: Iterable[B]): Boolean
that
-
the other iterable object
|
Scala
1.4.0.3 |
|||