3 ms·
'do' in Haskell is like PROGN right? I guess in a OOP langague like C++ it would be something like: foo1(); foo2(); return foo3(); ?
by rightbyte 4y ago
'do' in Haskell is like PROGN right?
I guess in a OOP langague like C++ it would be something like:
foo1();
foo2();
return foo3();
?
- agumonkey 4y agoprogn has a fixed meaning in how to sequence sub expressions do, afaik, just flips the written expression and use actual bind functions depending on the typeclass at point