1Array.unshift(3kaya) Kaya module reference Array.unshift(3kaya)
2
3
4
6 Array::unshift - Add a value onto the start of an array.
7
9 Void unshift( a val, var [a] array )
10
12 val The value to unshift
13
14 array The array
15
17 Add a value onto the start of an array.
18
19
20 array = [1,2,3];
21 unshift(array,4);
22 // array = [4,1,2,3]
23
25 Kaya standard library by Edwin Brady, Chris Morris and others
26 (kaya@kayalang.org). For further information see http://kayalang.org/
27
29 The Kaya standard library is free software; you can redistribute it
30 and/or modify it under the terms of the GNU Lesser General Public
31 License (version 2.1 or any later version) as published by the Free
32 Software Foundation.
33
35 Array.addAt (3kaya)
36 Array.push (3kaya)
37 Array.pop (3kaya)
38 Array.shift (3kaya)
39
40
41
42Kaya December 2010 Array.unshift(3kaya)