4 ms·
Haskell doesn't reject sequencing. f = g . h will require h is evaluated first.
by bbcbasic 10y ago
Haskell doesn't reject sequencing. f = g . h will require h is evaluated first.
- tome 10y agoh might not be evaluated at all! Consider h x = factorial x g x = 0 (but I agree that Haskell doesn't reject sequencing).
- deleted 10y ago[deleted]
- bbcbasic 10y agoYeah the IO monad will, but it isn't generally true of monads. Infant the maybe monad Will cease early on Nothing by design. So it is a brain shift.