diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/fizzbuzz_explorations.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/fizzbuzz_explorations.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/fizzbuzz_explorations.txt b/js/scripting-lang/scratch_tests/fizzbuzz_explorations.txt new file mode 100644 index 0000000..fc6c7d1 --- /dev/null +++ b/js/scripting-lang/scratch_tests/fizzbuzz_explorations.txt @@ -0,0 +1,7 @@ +predicates : n -> apply @logicalAnd (equals (n % 3) 0) (equals (n % 5) 0); +fizzbuzz : n -> + when predicates n is + true then "FizzBuzz" + _ then n; + +..out fizzbuzz 100; |