- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
mutable.Map.values return type
Fri, 2009-05-29, 21:36
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