Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/FizzBuzz/WDTE/fizzbuzz.wdte
Normal file
13
Task/FizzBuzz/WDTE/fizzbuzz.wdte
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
let io => import 'io';
|
||||
let s => import 'stream';
|
||||
|
||||
let multiple of n => == (% n of) 0;
|
||||
|
||||
let fizzbuzz n => switch n {
|
||||
multiple (* 3 5) => 'FizzBuzz';
|
||||
multiple 3 => 'Fizz';
|
||||
multiple 5 => 'Buzz';
|
||||
default => n;
|
||||
} -- io.writeln io.stdout;
|
||||
|
||||
s.range 1 101 -> s.map fizzbuzz -> s.drain;
|
||||
Loading…
Add table
Add a link
Reference in a new issue