Just to illustrate for others, in fish that would be
for i in (seq 10); echo $i; end
or usually written as for i in (seq 10)
echo $i
end
and that is already based on iteration, so for iterating over files, you'll similarly use for f in (ls); echo $f; end
and it works the same for arrays.