summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/MapLike.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-09 12:25:37 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-09 12:25:37 +0000
commit9bed3788ba35621514fcb7afc18526a6dc9c3dda (patch)
tree4156dbebf39fbc444bbc28e40050492c0870636a /src/library/scala/collection/MapLike.scala
parent2ff464685fd13cf0489b0cdece98beaba283b675 (diff)
downloadscala-9bed3788ba35621514fcb7afc18526a6dc9c3dda.tar.gz
scala-9bed3788ba35621514fcb7afc18526a6dc9c3dda.tar.bz2
scala-9bed3788ba35621514fcb7afc18526a6dc9c3dda.zip
Changes to docs of collections in the `immutabl...
Changes to docs of collections in the `immutable` package. Review by odersky.
Diffstat (limited to 'src/library/scala/collection/MapLike.scala')
-rw-r--r--src/library/scala/collection/MapLike.scala7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/library/scala/collection/MapLike.scala b/src/library/scala/collection/MapLike.scala
index 6a9fffe3e1..057224a705 100644
--- a/src/library/scala/collection/MapLike.scala
+++ b/src/library/scala/collection/MapLike.scala
@@ -233,13 +233,10 @@ self =>
}
/** Transforms this map by applying a function to every retrieved value.
- * @param d the function used to transform values of this map.
- * @return an immutable map which maps every key of this map
+ * @param f the function used to transform values of this map.
+ * @return a map view which maps every key of this map
* to `f(this(key))`. The resulting map wraps the original map without copying any elements.
*/
- /** A map view resulting from applying a given function `f` to each value
- * associated with a key in this map.
- */
def mapValues[C](f: B => C): Map[A, C] = new DefaultMap[A, C] {
override def foreach[D](g: ((A, C)) => D): Unit = for ((k, v) <- self) g((k, f(v)))
def iterator = for ((k, v) <- self.iterator) yield (k, f(v))