[Haskell-cafe] Does somebody know about these functions?
holmisen at gmail.com
Tue Feb 28 21:58:33 CET 2012
>> 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.
More information about the Haskell-Cafe