]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/LambdaMatch.scl
Supply SVG text editor with element measurement context
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / 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