Hi Isaac

>
> or
>
> f x = let
>           g (Just x) = x
>           g Nothing = error "Nothing"
>        in g x
>

That's interesting, thanks!


Chris.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to