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.
47b1910084592eb77a032bc7d8d1a84e?d=identicon&s=25 Joel VanderWerf (Guest)
on 2006-01-31 08:14
(Received via mailing list)
Can anybody explain why Set#merge is destructive, but Hash#merge is not?
3a5336a2844502fe58c2c06bc12c32ed?d=identicon&s=25 Stefan Walk (Guest)
on 2006-01-31 10: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.