Is this code guaranteed to always work this way:
a = [1,2,3,4,5]
–> [1, 2, 3, 4, 5]
def m( a, b, *c )
puts a, b, c
end
–> nil
m( a.shift, a.shift, a )
1
2
3
4
5
–> nil
I’m wondering (hoping) that the arguments will always be evaluated from
left to right as is the case above. Is this a ‘ruby rule’ or something
that could change?
TIA,
Michael