Hey, how are you?
My darlings, Ruby is magical!
Here was I, playing a little, learning a lot and BOOM, just got blown away by something super cool: adding and subtracting arrays; but you may ask “What you mean by that?“. I show you.
a = [1, 2] b = [3, 4] c = a + b p c
Yep! The concatenation of the arrays!!!
The subtracting may also be done;
a = [1, 2] b = [3, 4] c = a + b p c-a
Oh my! Ruby always surprises me!
There are so many applications for that, do you know some? Tell me on the comments (: