diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-09 12:25:37 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-09 12:25:37 +0000 |
commit | 9bed3788ba35621514fcb7afc18526a6dc9c3dda (patch) | |
tree | 4156dbebf39fbc444bbc28e40050492c0870636a /src/library/scala/collection/MapLike.scala | |
parent | 2ff464685fd13cf0489b0cdece98beaba283b675 (diff) | |
download | scala-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.scala | 7 |
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)) |