Ruby Methods Flashcards
1
Q
|
Array
Set Union
example
(arr | arr)
A
Returns the same array but with duplicates removed. Works with numbers, strings.
2
Q
.uniq
Array
Uniq
example
my_array.uniq
A
Returns the same array but with duplicates removed. Works with numbers, strings.
3
Q
*args or something
A
any number of arguments
4
Q
*p
A
any number of arguments