« Return to Thread: Naming collection operations

Re: [scala-internals] Naming collection operations

by Martin Odersky :: Rate this Message:

Reply to Author | View in Thread

On Mon, May 11, 2009 at 11:03 AM, Jorge Ortiz <jorge.ortiz@...> wrote:
> At the risk of method overloading, I'd suggest union/minus

union exists but it takes two sets (and could be extended to take two
maps). What I'm after is an operation that augments a set or map with
a single element/binding.

Cheers

 -- Martin

>
> (Speaking of which... why is Set's minus called diff?)
>
Set difference. I think it's called that way in the Haskell libraries
but I might be wrong.

Cheers

 -- Martin

 « Return to Thread: Naming collection operations