By bloid
via neilmitchell.blogspot.com
Submitted: May 10 / 04:10
Haskell has one primitive construct for enforcing strictness, seq :: a -> b -> b. The idea is that the first argument is evaluated to weak-head normal form (WHNF), then the second argument is evaluated to WHNF and returned. WHNF is reduction until the outermost bit is available - either a function value, or an outer constructor.
SaveShareSend
Tags: other languages
Add your comment