Re:Notes on Haskell: What's Wrong with the For Loop
by Dn_Ab on Tuesday March 08, 2011 @07:13PM
(#2303178)
Yes I'm talking about being able to stop early for one example. Or if the thing you are dealing with is not actually a sequence for another.
[ Parent
| on HN ]
Re:Notes on Haskell: What's Wrong with the For Loop
by darklajid on Tuesday March 08, 2011 @07:45PM
(#2303277)
The former can probably be solved for lots of cases by TakeWhile(), which evaluates before consuming more elements and could be used to replace "abort the loop" patterns.
The latter is a different thing..