F# versus Scala

Of course! But the while loop’s single-pass nature is even more obvious, which is why I wrote it that way.

1 Like