Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Scala
val tmp = a
a = b
b = tmp

procedure swap(a, b: in out Integer)
is
    temp : Integer;
begin
    temp := a;
    a := b;
    b := temp;
end swap;

New implementation...
programming-idioms.org