Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
(defn swap [a b]
  [b a])

Consider putting the items in a vector for destructuring
procedure swap(a, b: in out Integer)
is
    temp : Integer;
begin
    temp := a;
    a := b;
    b := temp;
end swap;

New implementation...
programming-idioms.org