[Haskell-cafe] Order of Evaluation

Miguel Mitrofanov miguelimo38 at yandex.ru
Fri May 9 14:01:07 EDT 2008


On 9 May 2008, at 21:52, PR Stanley wrote:

> Hi
> (take 4 . map (>0)) (f s t)
> where
> 	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 mailing list