Re: Swap and pass-by-reference
- Posted by unkmar Jan 29, 2011
- 1466 views
DerekParnell said...
@(a,b) = {b,a}
(N.B: I'm using here a possible syntax @( ... ) to denote a list of variables.)
Looks like perl.
@(a,b) = {b,a}
(N.B: I'm using here a possible syntax @( ... ) to denote a list of variables.)
Looks like perl.