Mega Code Archive

 
Categories / Ruby / Language Basics
 

Exchange value with an extra variable

a, b = 1, 2 x = a a = b b = x