|
Scala Library Documentation
|
|
scala/collection/jcl/MutableSeq.scala]
trait
Projection
extends Projection| Method Summary | |
override def
|
filter
(p : (A) => Boolean) : MutableSeq[A]
Returns all the elements of this iterable that satisfy the
predicate
p. The order of the elements is preserved.
Unlike filter in Iterable, this API is
not strict and will terminate on infinite-sized collections. |
override def
|
map
[B](f : (A) => B) : MutableSeq[B]
Returns the iterable resulting from applying the given function
f to each element of this iterable. Unlike map
in Iterable, this API is not strict and will terminate on
infinite-sized collections. |
| Methods inherited from Projection | |
| flatMap |
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
override
def
filter(p : (A) => Boolean) : MutableSeq[A]
p. The order of the elements is preserved.
Unlike filter in Iterable, this API is
not strict and will terminate on infinite-sized collections.p - the predicate used to filter the list.p.override
def
map[B](f : (A) => B) : MutableSeq[B]
f to each element of this iterable. Unlike map
in Iterable, this API is not strict and will terminate on
infinite-sized collections.f - function to apply to each element.f(a0), ..., f(an) if this iterable is a0, ..., an.|
Scala Library Documentation
|
|