At 2001-10-30 11:01, Hal Daume wrote:

>obviously i can rewrite:
>
>foo [] = ""
>foo s  = (snd . head) s
>
>but this is uglier.

I'm not sure. I actually prefer it written out so that the number of 
arguments in the cases matches (as GHC enforces).

-- 
Ashley Yakeley, Seattle WA


_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to