Take the first x elements from an array.
[a] take( Int x, [a] xs )
x The number of elements to take
xs The array of elements
Take the first x elements from an array, and return a new array, leaving the original unmodified. This is equivalent to subarray(xs,0,x)
Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.
Array.subarray (3kaya)