[Haskell-cafe] *GROUP HUG*

Tony Morris tonymorris at gmail.com
Wed May 25 08:56:16 CEST 2011


On 25/05/11 16:46, Eugene Kirpichov wrote:
> data FList a = FNil | FCons Int a (FList a)
> empty = FNil
> len FNil = 0
> len (FCons n _) = n
> cons x xs = FCons (1 + len xs) x xs
> tail (FCons _ _ xs) = xs
My mistake, sorry. Currently looking for original reason to have
accidentally come to believe that.

-- 
Tony Morris
http://tmorris.net/





More information about the Haskell-Cafe mailing list