wiki:LambdaCase

Version 2 (modified by john@…, 8 years ago) (diff)

--

case statements as first order

a simple desugaring,

case of
   arms

gets desugared to

\x -> case x of
    arms

see also