On 7/27/06, mvanier <[EMAIL PROTECTED]> wrote:
As opposed to what?

For example case-of, guards (in combination with let or where), or
just a function:

if :: Bool -> a -> a -> a
if True t _ = t
if False _ e = e

-- example usage
myAbs x = if (x < 0) (negate x) x


/S
--
Sebastian Sylvan
+46(0)736-818655
UIN: 44640862
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to