Changes

Advanced Ruby Arrays

65 bytes added, 01:02, 27 November 2007
Intersection, Union and Difference
<th>Operator</th><th>Description</th>
<tr>
<tdalign="center">-</td><td>Difference - Creates a new array from two existing arrays with duplicate elements removed</td>
<tr>
<td>&</td><td>Intersection - Creates a new array from two existing arrays containing only elements that are common to both arrays. Duplicates are removed.</td>
<tr>
<td>|</td><td>Union - Concatenates two arrays after removing duplicates</td>
</table>