ForNext
Only Do What Only You Can Do
118. union
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
PHP
$a1 = array(1,2); $a2 = array(2,3,4); array_unique(array_merge($a1, $a2))
Python
{1,2} | {2,3,4}
Ruby
[1,2] | [2,3,4]