13 lines
384 B
Text
13 lines
384 B
Text
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
|