1Array.take(3kaya) Kaya module reference Array.take(3kaya)
2
3
4
6 Array::take - Take the first x elements from an array.
7
9 [a] take( Int x, [a] xs )
10
12 x The number of elements to take
13
14 xs The array of elements
15
17 Take the first x elements from an array, and return a new array, leav‐
18 ing the original unmodified. This is equivalent to subarray(xs,0,x)
19
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
32 Array.subarray (3kaya)
33
34
35
36Kaya December 2010 Array.take(3kaya)