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

3 lines
61 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
swap[a_, b_] := {a, b} = {b, a}
SetAttributes[swap, HoldAll]