]> gerrit.simantics Code Review - simantics/platform.git/blob - LambdaMatch.scl
7aacf0b62e50faf80b6812689838e5fe57318ade
[simantics/platform.git] / LambdaMatch.scl
1 import "Prelude"
2
3 f :: Maybe String -> String
4 f = \match
5      Just a -> a
6      Nothing -> ""
7
8 main = f Nothing + f (Just "foo")
9 --
10 foo