Easypt

swap

..Root.algorithm.swap

Swaps two objects (warning: objects after swap are copies of original objects).

Child of:

algorithm

Signatures:

Object, Callable, BlockCallable

Example:

import("algorithm");

auto a.=(1);
auto b.=(2);

algorithm.swap(a, b);
log(a, b);