Kaya 0.4.4 reference for Builtins::swap

List of functions and data types in Builtins

Void swap(var a x, var a y)

Arguments

Usage

Swap the contents of two variables of the same type.

a = 5;
b = 6;
swap(a,b);
// a = 6, b = 5
kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya