Pattern matching will warn you if you neglect to consider the empty list. On Fri, Sep 16, 2011 at 10:24 AM, Michael Litchard <mich...@schmong.org> wrote: > Someone commented on StackOverflow that pattern matching the first > element of a list was preferable to head. This makes sense > intuitively. Could someone articulate the reason why this is true? > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe >
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe