L
Louis-Philippe
[Note: parts of this message were removed to make it a legal post.]
Hi all,
this is assignment behaviour:
and with a method:
If I want only one lvalue, is this:
the only way to get it?
I would have liked for the return behaviour to be set on the right side,
to allow method invocation like:
to return:
1
instead of
1
2
3
Thanks all!
L-P
Hi all,
this is assignment behaviour:
=> 2a,b = 1,2,3 => [1, 2, 3]
a => 1
b
and with a method:
=> 2def a_method
return 1, 2, 3
end => nil
a,b = a_method => [1, 2, 3]
a => 1
b
If I want only one lvalue, is this:
=> 1a, = 1, 2, 3 => [1, 2, 3]
a
the only way to get it?
I would have liked for the return behaviour to be set on the right side,
to allow method invocation like:
to return:
1
instead of
1
2
3
Thanks all!
L-P