General FizzBuzz: Difference between revisions
Content added Content deleted
(added BQN solution) |
m (→{{header|Tailspin}}: handle autotyping of tagged identifiers) |
||
Line 3,518: | Line 3,518: | ||
=={{header|Tailspin}}== |
=={{header|Tailspin}}== |
||
<lang tailspin> |
<lang tailspin> |
||
def input: {N: 110, words: [ { mod: 3, word: 'Fizz' }, { mod: 5, word: 'Buzz'}, {mod:7, word: 'Baxx'}]}; |
def input: {N: 110"1", words: [ { mod: 3"1", word: 'Fizz' }, { mod: 5"1", word: 'Buzz'}, {mod:7"1", word: 'Baxx'}]}; |
||
templates sayWords |
templates sayWords |
||
Line 3,529: | Line 3,529: | ||
end sayWords |
end sayWords |
||
[ 1..$input.N -> '$->sayWords;' ] -> \[i](<''> $i ! <> $ !\) -> '$; |
[ 1"1"..$input.N -> '$->sayWords;' ] -> \[i](<''> $i ! <> $ !\) -> '$; |
||
' -> !OUT::write |
' -> !OUT::write |
||
</lang> |
</lang> |