Archive for Ruby Numbers

Ruby Numbers Swap

How cute! Single line swap in Ruby. When I tried to do a single line swap in C, it was something like a^=b^=a^=b.


Comments