I think it's just as-yet-unimplemented.

That said, if you have a seq{} expression, you can usually 'simulate' a break with a 'bool ref' named e.g. 'finished' and an extra conditional expression.

By on 6/21/2009 9:32 AM ()

EDIT: In writing this post I cleared up a bit of muddled thinking on my part.

Brian - good to know yield break is on the cards for a future release.

regards,

Danny

By on 6/21/2009 12:26 PM ()

My understanding is the for FP, you transform data in the form of f(x) = y so breaking a loop doesn't conceptually fit.

The standard way is either your filter out things via filter(seq) or you use takeWhile

Why would you need a break ? I used to code using break/continue but now find the code easier to reason(and maintain) without them.

By on 6/21/2009 8:13 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper