Esto es amor 2
Get all the elements that two arrays have in common with the ampersand operator (
&).[ 1, 1, 3, 5 ] & [ 1, 2, 3 ] # => [1, 3]This is taken from the ‘Programming Ruby’ Book, where you can find out more.
nil.nil? => truenil? => false
« Back to blog
Esto es amor 2
|
|