3 ms·
You can write fancy code in Haskell and then write long, narcissistic blog posts.) Seriously, it is all about closures - you could capture (and delay) the comp
by dschiptsov 14y ago
You can write fancy code in Haskell and then write long, narcissistic blog posts.)
Seriously, it is all about closures - you could capture (and delay) the computation, like creating a closure (a function with its parameters) and then actually execute the code when some other conditions were meet. Currying allows you to execute all steps but last one, for example, so you will have a returned function to call whenever you wish.