Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Dn_Ab
on March 9, 2011
|
parent
|
context
|
favorite
| on:
Notes on Haskell: What's Wrong with the For Loop
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.
darklajid
on March 9, 2011
[–]
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..
1:
http://msdn.microsoft.com/en-us/library/bb534804.aspx
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: