-
Notifications
You must be signed in to change notification settings - Fork 21
immutable.Map.filterKeys should return immutable.Map #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-751?orig=1 |
@mcdirmid said: |
@odersky said: |
@paulp said: |
@odersky said: |
@dcsobral said: scala> var map = Map(1 -> "a", 2 -> "b", 3 -> "c")
map: scala.collection.immutable.Map[Int,java.lang.String] = Map((1,a), (2,b), (3,c))
scala> map = map.filterKeys(_ % 2 == 0)
map: scala.collection.immutable.Map[Int,java.lang.String] = Map(2 -> b) Built from: 2.8.0.r0-b20100306211516 |
collection.immutable.Map.filterKeys should return collection.immutable.Map
Now it returns collection.Map.Projection. So
is not possible.
(Map is Predef.Map == immutable.Map)
The text was updated successfully, but these errors were encountered: