Comment

Comment by cube2222

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.
parent cube2222 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton