]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Matching4.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 / Matching4.scl
1 import "Prelude"
2
3 dummySum [] = 0
4 dummySum [a] = a
5 dummySum [a,b] = a + b
6 dummySum [a,b,c] = a + b + c
7 dummySum l = sum l
8
9 main = dummySum [] + dummySum [1] + dummySum [1,2] + dummySum [1,2,3]
10 --
11 10