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