RosettaCodeData/Task/Generic-swap/Ruby/generic-swap-2.rb
2023-07-01 13:44:08 -04:00

3 lines
35 B
Ruby

def swap(a, b)
return b, a
end