Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Set#merge

Reply
Thread Tools

Set#merge

 
 
Joel VanderWerf
Guest
Posts: n/a
 
      01-31-2006

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

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407


 
Reply With Quote
 
 
 
 
Stefan Walk
Guest
Posts: n/a
 
      01-31-2006
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments