diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_pipe_simple.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_pipe_simple.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_pipe_simple.txt b/js/scripting-lang/scratch_tests/test_pipe_simple.txt new file mode 100644 index 0000000..c96613d --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_pipe_simple.txt @@ -0,0 +1,11 @@ +/* Test simple pipe function */ +f1 : x -> x + 1; +f2 : x -> x * 2; + +simple_pipe : pipe @f1 @f2 10; +simple_compose : compose @f1 @f2 10; + +..out "simple_pipe = "; +..out simple_pipe; +..out "simple_compose = "; +..out simple_compose; \ No newline at end of file |