[Haskell-cafe] pattern matching instead of prelude.head

Michael Litchard michael at schmong.org
Fri Sep 16 04:24:55 CEST 2011

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?

More information about the Haskell-Cafe mailing list