diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_simple_composition.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_simple_composition.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_simple_composition.txt b/js/scripting-lang/scratch_tests/test_simple_composition.txt new file mode 100644 index 0000000..44e42b6 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_simple_composition.txt @@ -0,0 +1,8 @@ +/* Test simple composition */ + +f : x -> x * 2; +g : x -> x + 1; + +/* Test basic composition */ +result : f via g 5; +..out result; \ No newline at end of file |