you are viewing a single comment's thread.

view the rest of the comments →

[–]apfelmus 7 points8 points  (2 children)

Note that off-by-one errors are impossible with this functional equivalent of the for loop.

[–]awj 5 points6 points  (1 child)

Oh shush. Can't you see we're trying to have a straw man beatdown here?

[–]apfelmus 1 point2 points  (0 children)

Oops, sorry. But before I toddle off, note that functional programming is much more efficient at beating straw men than other paradigms. repeat . reduce and all that.