The new unzip* functions in 1.2 are not suitable for unzipping an
infinite list.  (What Phil called "A splitting headache".)
Is this deliberate or a mistake?  I'd like them to be lazier.

All you need is to change from
        unzip           =  foldr (\(a,b)  (as,bs) -> (a:as,b:bs)) ([],[])
to
        unzip           =  foldr (\(a,b) ^(as,bs) -> (a:as,b:bs)) ([],[])


        -- Lennart


Reply via email to