
1 Sep
2013
1 Sep
'13
3:37 p.m.
On Sun, Sep 1, 2013 at 1:05 AM, Nathan Hüsken
The eqivalent do in C:
void doBlock() { if (some preCondition) { return; } ... }
Brent and Tony have already given the closest Haskell equivalents. For completeness, it's worth pointing out that the above C is equivalent to void doBlock() { if (some preCondition) { return; } else { ... } } So you can write it similarly in Haskell using if/then/else. -- Kim-Ee