menu
swap
import { swap } from "destack:memory";
Exchange the values at left and right.
1export declare function swap<T>(left: &'a exclusive T, right: &'b exclusive T): voidimport { swap } from "destack:memory";
Exchange the values at left and right.
1export declare function swap<T>(left: &'a exclusive T, right: &'b exclusive T): void