This page is no longer maintained — Please continue to the home page at www.scala-lang.org

mutable.Map.values return type

No replies
Mark Harrah
Joined: 2008-12-18,
User offline. Last seen 35 weeks 3 days ago.

For a mutable Map, the 'values' method now returns a Set. I think the
behavior from 2.7.x should be preserved ('values' should return an Iterator)
and a separate method valueSet should return a Set. This is especially
important because it is reasonable for mutable Maps to contain other mutable
Maps or Sets as values.

Thanks,
Mark

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland