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

steffen steffen.siering at googlemail.com
Wed Oct 6 16:32:32 EDT 2010


> > A slightly different suggestion from Simon PJ and myself (we agreed on
> > something syntax-related :-) is the following:
>
> >  \case 1 -> f
> >        2 -> g
> > ...
> >  \case { 1 -> f; 2 -> g }
>
> +1
>
> I like this because it has exactly the same properties of Max's
> case-of, but is shorter and still reads with sense.
+1


More information about the Haskell-Cafe mailing list