varying number of arguments restriction

Ashley Yakeley [email protected]
Tue, 30 Oct 2001 15:42:17 -0800


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