btpoole
11 years agoChannel Surfer
Array Range
Is there any way to extract a set number of values stored in an array. For example in the the array myarray I only want the first 10 entries in the array. Thanks
"btpoole" wrote:
I can live with the small code to do it, but was looking for a one liner.
mySlice = arraySlice(myArray, 0, 9) 'returns the 10 first elementsIs that not good enough? It even does party tricks, like say when called with no extra params, `arraySlice(arr)` makes a copy of the array.