]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ViewPatterns1.scl
Merge "List the unsatisfied dependencies in CanvasContext"
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / ViewPatterns1.scl
1 import "Prelude"\r
2 \r
3 f :: String -> String\r
4 f (split "/" -> [a,b]) = "\(a)foo\(b)"\r
5 f (split "/" -> [a,b,c]) = "\(a)foo\(b)bar\(c)"\r
6 f str = str\r
7 \r
8 main = f "123" + f "abc/def" + f "123/456/789"\r
9 --\r
10 123abcfoodef123foo456bar789\r