[a] take(Int x, [a] xs)
Arguments
x: The number of elements to takexs: The array of elements
Usage
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).
x: The number of elements to takexs: The array of elementsTake the first x elements from an array, and return a new array, leaving the original unmodified. This is equivalent to subarray(xs,0,x).