diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_enhanced_compose.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_enhanced_compose.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_enhanced_compose.txt b/js/scripting-lang/scratch_tests/test_enhanced_compose.txt new file mode 100644 index 0000000..d277c64 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_enhanced_compose.txt @@ -0,0 +1,9 @@ +/* Test enhanced compose function */ + +f : x -> x * 2; +g : x -> x + 1; +h : x -> x * x; + +/* Test enhanced compose with multiple functions */ +result : compose(f, g, h) 2; +..out result; \ No newline at end of file |