1Array.resize(3kaya) Kaya module reference Array.resize(3kaya)
2
3
4
6 Array::resize - Resize an array.
7
9 Void resize( var [a] xs, Int i )
10
12 xs The array to resize
13
14 i The new length
15
17 Change the size of the array to i
18 If the array is longer than i , later items are dropped. If it is
19 shorter, uninitialised values are pushed onto the array.
20
22 Kaya standard library by Edwin Brady, Chris Morris and others
23 (kaya@kayalang.org). For further information see http://kayalang.org/
24
26 The Kaya standard library is free software; you can redistribute it
27 and/or modify it under the terms of the GNU Lesser General Public
28 License (version 2.1 or any later version) as published by the Free
29 Software Foundation.
30
31
32
33Kaya December 2010 Array.resize(3kaya)