Re: strictness of List.transpose

1998-04-01 Thread Koen Claessen
Jeffrey R. Lewis wrote: | Hmm... indeed. I wonder if there's any reason why zipWith can't just be fully lazy | so that we don't need to twiddle with transpose. I.e., define it as: | | zipWith :: (a->b->c) -> [a]->[b]->[c] | zipWith z ~(a:as) ~(b:bs) = z a b : zi

Re: strictness of List.transpose

1998-03-31 Thread Jeffrey R. Lewis
Jonas Holmerin wrote: > The other day, I tried to transpose an infinite list of finite list: > Simplified example: > > transpose (repeat [1..5]) > > This won't terminate, since transpose is defined as > > transpose :: [[a]] -> [[a]] > transpose = foldr >