RosettaCodeData/Task/Generic-swap/Mathematica/generic-swap.math

3 lines
61 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
swap[a_, b_] := {a, b} = {b, a}
SetAttributes[swap, HoldAll]