1Array.removeAt(3kaya) Kaya module reference Array.removeAt(3kaya)
2
3
4
6 Array::removeAt - Remove an element from an array
7
9 Void removeAt( var [a] array, Int idx )
10
12 array The array to act on
13
14 idx The index of the element to remove
15
17 Remove (in-place) the element at position idx
18
19
20
21 array = [1,2,3,4,5,6,7];
22 removeAt(array,2);
23 // array = [1,2,4,5,6,7];
24
26 Kaya standard library by Edwin Brady, Chris Morris and others
27 (kaya@kayalang.org). For further information see http://kayalang.org/
28
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
36 Array.remove (3kaya)
37 Array.addAt (3kaya)
38
39
40
41Kaya December 2010 Array.removeAt(3kaya)