Set#merge

Can anybody explain why Set#merge is destructive, but Hash#merge is not?

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs