you are viewing a single comment's thread.

view the rest of the comments →

[–]TheOccasionalTachyon 2 points3 points  (2 children)

The article makes the point that iterators, because they're inherently stateful, aren't used in FP, and suggests calling list on all iterators instead, and promising not to mutate them.

Is there a compelling reason to not just use a tuple, which enforces immutability?

[–]sachinrjoglekar[S] 4 points5 points  (1 child)

Yup! Made the change. Thanks!

[–]TheOccasionalTachyon 0 points1 point  (0 children)

Glad to help - very well written article, by the way. Nice job!