[Haskell-cafe] Order of Evaluation
miguelimo38 at yandex.ru
Fri May 9 14:01:07 EDT 2008
On 9 May 2008, at 21:52, PR Stanley wrote:
> (take 4 . map (>0)) (f s t)
> s = 2 : t
> t = 3 : s
> f = zipWith (-)
> What would be the order of evaluation for the above code? How would
> I illustrate the evaluation step-by-step?
What do you need it for, really? Pure functional programs are not
about evaluation order, but about values.
More information about the Haskell-Cafe