>> Except when l == [], but the second equation can be replaced by this nicer >> one. > > Even then. :) (zipWith f l (tail l)) first tries to match l with pattern > (a:as), and if that > fails it will not touch its other argument (tail l).
Hm, you're right, it did work for empty lists. I wonder if one dare trust it to always be so. /Johan _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
