W dniu 3 kwietnia 2012 21:24 uytkownik Christopher D.
<lists / ruby-forum.com> napisa:
> Cool, that makes sense, is there any way to do it sequentially without
> it being on the same line?

You could use a temporary variable to store the result of one of the
operations. This is what is usually done in languages which do not
support this kind of multiple assignment.

So this:

  i, p = p, i+p

Becomes this:

  tmp = p
  p = i+p
  i = tmp


-- Matma Rex