in scala
class IterableProxy

mixin abstract class IterableProxy [ A ]
extends java.lang.Object
with Iterable
with Proxy
with ScalaObject
This class implements a proxy for iterable objects. It forwards all calls to a different iterable object.
author:
Matthias Zenger
version:
1.0, 26/04/2004

Def Summary
override def /: [ B ] ( z : B ) ( f : Function2 ) : B
Similar to 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 : Function2 ) : B
An alias for foldRight. That is, xs :\ z is the same as xs foldRight z
def elements : Iterator
Creates a new iterator over all elements contained in this object.
override def exists ( p : Function1 ) : scala.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 : Function1 ) : Option
Find and return the first element of the iterable object satisfying a predicate, if any.
override def foldLeft [ B ] ( z : B ) ( op : Function2 ) : 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 : Function2 ) : 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 : Function1 ) : scala.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 : Function1 ) : scala.Unit
Apply a function f to all elements of this iterable object.
override def sameElements [ A <: B ] ( that : Iterable ) : scala.Boolean
Checks if the other iterable object contains the same elements.
def self : Iterable



Def Detail
override def /: [ B ]( z : B ) ( f : Function2 ) : B
Similar to 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 : Function2 ) : B
An alias for foldRight. That is, xs :\ z is the same as xs foldRight z

def elements : Iterator
Creates a new iterator over all elements contained in this object.
return:
the new iterator

override def exists ( p : Function1 ) : scala.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.
param:
p the predicate
returns:
true, iff the predicate yields true for at least one element.

override def find ( p : Function1 ) : Option
Find and return the first element of the iterable object satisfying a predicate, if any.
param:
p the predicate
return:
the first element in the iterable object satisfying p, or None if none exists.

override def foldLeft [ B ]( z : B ) ( op : Function2 ) : B
Combines the elements of this list together using the binary operator op, from left to right, and starting with the value z.
return:
op(... (op(op(z,a0),a1) ...), an) if the list is List(a0, a1, ..., an).

override def foldRight [ B ]( z : B ) ( op : Function2 ) : B
Combines the elements of this list together using the binary operator op, from rigth to left, and starting with the value z.
return:
a0 op (... op (an op z)...) if the list is [a0, a1, ..., an].

override def forall ( p : Function1 ) : scala.Boolean
Apply a predicate p to all elements of this iterable object and return true, iff the predicate yields true for all elements.
param:
p the predicate
returns:
true, iff the predicate yields true for all elements.

override def foreach ( f : Function1 ) : scala.Unit
Apply a function f to all elements of this iterable object.
param:
f a function that is applied to every element.

override def sameElements [ A <: B ]( that : Iterable ) : scala.Boolean
Checks if the other iterable object contains the same elements.
param:
that the other iterable object
return:
true, iff both iterable objects contain the same elements.

def self : Iterable