[Haskell-cafe] unary pattern matching

Taral taralx at gmail.com
Thu Jan 26 21:17:59 EST 2006


On 1/26/06, Donald Bruce Stewart <dons at cse.unsw.edu.au> wrote:
> Something like pattern guards?
>
>     f x | Just _ <- x = putStrLn "something"

These subsume pattern guards...

--
Taral <taralx at gmail.com>
"Computer science is no more about computers than astronomy is about
telescopes."
    -- Edsger Dijkstra


More information about the Haskell-Cafe mailing list