[Haskell-beginners] case statement

Imants Cekusins imantc at gmail.com
Tue Jul 7 10:28:58 UTC 2015


ok with a small tweak I can see "case" a1 value is x:

result1 x = case x of
               a1 -> trace (show a1) "one"
               2 -> "two"


More information about the Beginners mailing list