No, Haskell functions take exactly one argument.
On Tue, 13 Nov 2007 13:51:13 -0800Isn't it a function taking zero arguments?
"Dan Piponi" <dpiponi@gmail.com> wrote:
> Up until yesterday I had presumed that guards only applied to
> functions. But I was poking about in the Random module and discovered
> that you can write things like
>
> a | x > 1 = 1
> | x < -1 = -1
> | otherwise = x
>
> where 'a' clearly isn't a function.
--
Robin_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe