Changes

Jump to: navigation, search

Advanced Ruby Arrays

30 bytes added, 01:02, 27 November 2007
Intersection, Union and Difference
<td align="center">-</td><td>Difference - Creates a new array from two existing arrays with duplicate elements removed</td>
<tr>
<tdalign="center">&</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>
<tdalign="center">|</td><td>Union - Concatenates two arrays after removing duplicates</td>
</table>

Navigation menu