Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -6,8 +6,11 @@ templates sayWords
|
|||
def word: $.word;
|
||||
$i mod $.mod -> \(<=0"1"> $word !\) !
|
||||
end maybeSay
|
||||
$input.words... -> maybeSay !
|
||||
'$input.words... -> maybeSay;' -> #
|
||||
|
||||
when <=''> do $i !
|
||||
otherwise $ !
|
||||
end sayWords
|
||||
|
||||
[ 1"1"..$input.N -> '$->sayWords;' ] -> \[i](<=''> $i ! <> $ !\) -> '$;
|
||||
1"1"..$input.N -> sayWords -> '$;
|
||||
' -> !OUT::write
|
||||
16
Task/General-FizzBuzz/Tailspin/general-fizzbuzz-2.tailspin
Normal file
16
Task/General-FizzBuzz/Tailspin/general-fizzbuzz-2.tailspin
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
input is {N: 110"1", words: [ { mod: 3"1", word: 'Fizz' }, { mod: 5"1", word: 'Buzz'}, {mod:7"1", word: 'Baxx'}]};
|
||||
|
||||
sayWords templates
|
||||
i is $;
|
||||
maybeSay templates
|
||||
word is $(word:);
|
||||
$i mod $(mod:) -> if <|=0"1"> -> $word !
|
||||
end maybeSay
|
||||
'$input(words:)... -> maybeSay;' -> # !
|
||||
|
||||
when <|=''> do $i !
|
||||
otherwise $ !
|
||||
end sayWords
|
||||
|
||||
1"1"..$input(N:) -> sayWords -> '$;
|
||||
' !
|
||||
Loading…
Add table
Add a link
Reference in a new issue