среда, 26 сентября 2007 г.

How to swap two variables in Ruby?

Yeah, It's really simple to do! You must write only one string:

Ruby provides parallel assignment - they can be preformed in parallel. So it's normal code for Ruby:

Moreover, Ruby provides nested assignment:

Комментариев нет: