[Haskell-cafe] Lambda-case / lambda-if

Colin Paul Adams colin at colina.demon.co.uk
Sat Oct 2 14:29:56 EDT 2010

>>>>> "Max" == Max Bolingbroke <batterseapower at hotmail.com> writes:

    Prelude> (if then "Haskell" else "Cafe") False
    Max> "Cafe"

My reaction is to ask:

Can you write this as:

(if then else) False  "Haskell"  "Cafe"

Colin Adams
Preston Lancashire
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

More information about the Haskell-Cafe mailing list