So, in essence, the post shows that you can always transform a for loop into a fold call (you can emulate the loop's mutable variables with function arguments). But I don't think the result is better in any sense than the original, imperative, style.