34,333
edits
Changes
→Intersection, Union and Difference
Ruby's support for array manipulation goes beyond that offered by many other scripting languages. One area where this is particularly true involves the ability to create new arrays based on the union, intersection and difference of two arrays. These features are provided via the following ''set operation'' symbols:
<tableborder="1" cellspacing="0"><tr style="background:#efefef;">
<th>Operator</th><th>Description</th>
<tr>