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

generalize unionWith to all Maps?

No replies
Paul Brauner
Joined: 2010-10-28,
User offline. Last seen 42 years 45 weeks ago.
Hello,
I often find myself wanting to use IntMap's unionWith method on arbitrary Maps (as in haskell's Data.Map).Is there any reason why it is not present in Map? (other than just because nobody thought of it / had the time to implement it).
Paul

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