Does anyone use tuples in Ruby? If so, how may one implement a tuple? Ruby hashes are nice and work almost as well, but I\'d really like to see something like the Tuple clas
You can do something similiar with destructuring:
def something((a, b)) a + b end p something([1, 2])
This prints out 3 as expected.
3