Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/General-FizzBuzz/Tailspin/general-fizzbuzz.tailspin
Normal file
13
Task/General-FizzBuzz/Tailspin/general-fizzbuzz.tailspin
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
def input: {N: 110"1", words: [ { mod: 3"1", word: 'Fizz' }, { mod: 5"1", word: 'Buzz'}, {mod:7"1", word: 'Baxx'}]};
|
||||
|
||||
templates sayWords
|
||||
def i: $;
|
||||
templates maybeSay
|
||||
def word: $.word;
|
||||
$i mod $.mod -> \(<=0"1"> $word !\) !
|
||||
end maybeSay
|
||||
$input.words... -> maybeSay !
|
||||
end sayWords
|
||||
|
||||
[ 1"1"..$input.N -> '$->sayWords;' ] -> \[i](<=''> $i ! <> $ !\) -> '$;
|
||||
' -> !OUT::write
|
||||
Loading…
Add table
Add a link
Reference in a new issue