scala.collection.jcl.Map

trait Projection

[source: scala/collection/jcl/Map.scala]

trait Projection
extends MutableIterableProjection with Projection
Direct Known Subclasses:
Map.Lense.Projection, Map.Filter.Projection, SortedMap.Projection

Method Summary
override def filterKeys (p : (K) => Boolean) : Map[K, E]
filter based on keys only
override def map [B](f : ((K, E)) => B) : MutableIterable[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
mapElements
Methods inherited from Projection
filter, 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 filterKeys(p : (K) => Boolean) : Map[K, E]
filter based on keys only
Overrides
Projection.filterKeys

override def map[B](f : ((K, E)) => B) : MutableIterable[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.
Parameters
f - function to apply to each element.
Returns
f(a0), ..., f(an) if this iterable is a0, ..., an.