General FizzBuzz: Difference between revisions

Content added Content deleted
m (→‎{{header|Tailspin}}: stricter typing and avoid new string type match)
Line 3,843: Line 3,843:
templates maybeSay
templates maybeSay
def word: $.word;
def word: $.word;
$i mod $.mod -> \(<=0> $word !\) !
$i mod $.mod -> \(<=0"1"> $word !\) !
end maybeSay
end maybeSay
$input.words... -> maybeSay !
$input.words... -> maybeSay !
end sayWords
end sayWords


[ 1"1"..$input.N -> '$->sayWords;' ] -> \[i](<''> $i ! <> $ !\) -> '$;
[ 1"1"..$input.N -> '$->sayWords;' ] -> \[i](<=''> $i ! <> $ !\) -> '$;
' -> !OUT::write
' -> !OUT::write
</lang>
</lang>