« Return to Thread: Order of Evaluation

Re: Order of Evaluation

by Miguel Mitrofanov :: Rate this Message:

Reply to Author | View in Thread


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.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

 « Return to Thread: Order of Evaluation