Array

I was looking for a function to only use certain values of an array but I dont think I found one.

Is my best bet just to use a for or a while loop if I only want the first 10 values from an array?