1Builtins.swap(3kaya)         Kaya module reference        Builtins.swap(3kaya)
2
3
4

NAME

6       Builtins::swap - Swap the contents of two variables
7

SYNOPSIS

9       Void swap( var a x, var a y )
10

ARGUMENTS

12       x First variable
13
14       y Second variable
15

DESCRIPTION

17       Swap the contents of two variables of the same type.
18
19
20    a = 5;
21    b = 6;
22    swap(a,b);
23    // a = 6, b = 5
24

AUTHORS

26       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
27       (kaya@kayalang.org). For further information see http://kayalang.org/
28

LICENSE

30       The Kaya standard library is free software;  you  can  redistribute  it
31       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
32       License (version 2.1 or any later version) as  published  by  the  Free
33       Software Foundation.
34
35
36
37Kaya                             December 2010            Builtins.swap(3kaya)
Impressum