Mega Code Archive

 
Categories / Ruby / Array
 

Computing Set Operations on Arrays

p [1,2,3] - [1,4,5]            # => [2, 3]