[Haskell-cafe] Re: A simple beginner question
Achim Schneider
barsoap at web.de
Tue Jun 3 21:02:43 EDT 2008
Achim Schneider <barsoap at web.de> wrote:
> filter (\x -> case x of
> { A -> True
> ; B b | b > 2 -> True
> ; C c | c == "foo" -> True
> ; _ -> False}) sampleTypes
coming to think of it: Why can't I write
filter (\A -> True
\B b | b > 2 -> True
\C c | c == "foo" -> True
_ -> False
) sampleTypes
? AFAICT it's syntactically unambiguous.
--
(c) this sig last receiving data processing entity. Inspect headers for
past copyright information. All rights reserved. Unauthorised copying,
hiring, renting, public performance and/or broadcasting of this
signature prohibited.
More information about the Haskell-Cafe
mailing list