On Tuesday, November 24, 2015 at 8:16:39 AM UTC-5, Sisyphuss wrote: > > I didn't know the convention that _ is used as any superfluous assignment. > So I can write `_ = a; a = b; b = _` for integer swap? >
Yes, but you can also just do a,b = b,a
On Tuesday, November 24, 2015 at 8:16:39 AM UTC-5, Sisyphuss wrote: > > I didn't know the convention that _ is used as any superfluous assignment. > So I can write `_ = a; a = b; b = _` for integer swap? >
Yes, but you can also just do a,b = b,a