[Haskell-cafe] Lambda-case / lambda-if
Bulat Ziganshin
bulat.ziganshin at gmail.com
Mon Oct 4 04:55:57 EDT 2010
Hello Ketil,
Monday, October 4, 2010, 11:30:48 AM, you wrote:
>> Prelude> (if then "Haskell" else "Cafe") False
lambda-if is easily implemented in terms of usual functions.
and we even have one named bool:
bool: Bool -> a -> a -> a
lambda-case cannot be implemented as a function since we need
matching ability of "case"
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list