diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/fac.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/fac.txt | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/js/scripting-lang/scratch_tests/fac.txt b/js/scripting-lang/scratch_tests/fac.txt deleted file mode 100644 index a94f8e1..0000000 --- a/js/scripting-lang/scratch_tests/fac.txt +++ /dev/null @@ -1,8 +0,0 @@ -factorial : n -> - when n is - 0 then 1 - _ then n * (factorial (n - 1)); - -/* Using factorial */ -..out factorial 5; /* Output: 120 */ -..out factorial 0; /* Output: 1 */ |