Good morning everyone! A quick question. I have a for loop. `for file in files`

Good morning everyone! A quick question. I have a for loop.
for file in files
do something
end
Since there are several hundreds of files, I would like to just test the first 10 and see if it works, how can I write this out in a compact way?
for file,i in files,[1..10]
do something
end
Thanks!

Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message :slack:) (More Info)