At 10:41 1/04/2002 -0500, Paul Hudak wrote:
It's really not as obscure as it first seems. A fixpoint of a function
foo is a value x such that foo x = x. The fix operator tells us one way
(not the only way) to generate such a fixpoint:
fix foo = foo (fix foo)
Note from this equation that
polyArea (v1:v2:v3:vs') = triArea v1 v2 v3 + polyArea(v3:vs')
polyArea _ = 0
Is it an idiom or some sort of optimization ?
Or just the way he likes it ?
TIA
Ludovic Kuty
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http