How do I translate this `for` loop for the fish shell?

Viewed 22403

I'm translating a script from Z shell to Fish, and I've got this one part I can't figure out how to translate:

  for (( i=0; i < $COLUMNS; i++ )); do
    printf $1
  done

The only documentation for for loops I can find in Fish is for this kind. How would I do this in Fish?

2 Answers
Related