]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Composition.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Composition.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Composition.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Composition.scl
new file mode 100644 (file)
index 0000000..80b1c06
--- /dev/null
@@ -0,0 +1,17 @@
+infixr 9 (.)\r
+\r
+@private\r
+@inline\r
+(f . g) = \x -> f (g x)\r
+\r
+@private\r
+@inline\r
+flip (x,y) = (y,x)\r
+\r
+@private\r
+@inline\r
+flip4 = flip . flip . flip . flip\r
+\r
+main = flip4 ("a", "b")\r
+--\r
+(a,b)
\ No newline at end of file