Consider the following function:
def function
return 1, 2
end
How can I set a
equal to 1 and b
equal to 2, assuming a
and b
are variables?
Please don't recommend a=1
and b=2
, the point is to understand how to access what the function has returned.