RosettaCodeData/Task/Generic-swap/Mathematica/generic-swap.math
2023-07-01 13:44:08 -04:00

2 lines
61 B
Text

swap[a_, b_] := {a, b} = {b, a}
SetAttributes[swap, HoldAll]