[Haskell-cafe] Detecting Cycles in Datastructures

Henning Thielemann lemming at henning-thielemann.de
Fri Nov 18 11:49:29 EST 2005


On Fri, 18 Nov 2005, Paul Hudak wrote:

> For example:
>
>> fe1,fe2 :: Fix Expr
>> fe1 e = Add (Const 1) (Const 1)  -- non-recursive
>> fe2 e = Add (Const 1) e          -- recursive

Do you mean

fe1 _ = Add (Const 1) Loop

?


More information about the Haskell-Cafe mailing list