scala.Seq

class Filter

[source: scala/Seq.scala]

class Filter(p : (A) => Boolean)
extends Projection[A]
Method Summary
override def apply (idx : Int) : A
override def elements : Iterator[A]
Creates a new iterator over all elements contained in this object.
override def length : Int
Returns the length of the sequence.
override def stringPrefix : String
Defines the prefix of this object's toString representation.
Methods inherited from Projection
projection, map, flatMap, filter
Methods inherited from Seq
size, isEmpty, concat, last, ++, isDefinedAt, lastIndexOf, take, drop, takeWhile, dropWhile, reverse, contains, slice, subseq, toArray
Methods inherited from Collection
toString, equalWith
Methods inherited from Iterable
foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def stringPrefix : String
Defines the prefix of this object's toString representation.

override def elements : Iterator[A]
Creates a new iterator over all elements contained in this object.
Returns
the new iterator

override def apply(idx : Int) : A

override def length : Int
Returns the length of the sequence.
Returns
the sequence length.