about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_pipe_nested.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_pipe_nested.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_pipe_nested.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_pipe_nested.txt b/js/scripting-lang/scratch_tests/test_pipe_nested.txt
new file mode 100644
index 0000000..6cc2738
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_pipe_nested.txt
@@ -0,0 +1,9 @@
+/* Test nested pipe function */
+f1 : x -> x + 1;
+f2 : x -> x * 2;
+f3 : x -> x - 1;
+
+nested_pipe : pipe @f1 (pipe @f2 @f3) 10;
+
+..out "nested_pipe = ";
+..out nested_pipe; 
\ No newline at end of file