Forum: Ruby Set#merge

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joel VanderWerf (Guest)
on 2006-01-31 09:14
(Received via mailing list)
Can anybody explain why Set#merge is destructive, but Hash#merge is not?
Stefan W. (Guest)
on 2006-01-31 11:51
(Received via mailing list)
Joel VanderWerf wrote:
> Can anybody explain why Set#merge is destructive, but Hash#merge is not?
>

Probably the same reason that Array#delete is destructive, but
String#delete is not.

Regards,
Stefan
This topic is locked and can not be replied to.