I don't know why you want to call that a "loop", but, sure, you do you, you crazy imperative programmers.
edit: Sigh. I was jockingly mocking.
How did he solve the iteration problem? A for loop is just syntactic sugar for a while loop.
> why are you drawn to Haskell?
I just want my programs to work. I've seen too many null pointer exceptions and other runtime errors. Runtime errors = bad. Compile errors = good.