Hoon, 115 bytes
This is a Hoon say generator which can be used to write the output to a file from the dojo. I think
turn
is Hoon's map
, it may be possibletakes a list from 1..100 generated via (gulf 1 100)
and uses string interpolation and the 'null check' conditional rune ?~
to reducegenerate either "Fizz", "Buzz" or "FizzBuzz" according to the character count by playing around with irregular forms but thisvalue of x
. This is paired with the best I can do for nowvalue of x
as a string <x>
and then -
and +
are used to select the fizzbuzz string if not empty, otherwise the number string from the pair.
:-
%say
|=
*
:-
%txt
%+
turn
(gulf 1 100)
|=
x=@
=>
"{?~((mod x 3) "Fizz" ~)}{?~((mod x 5) "Buzz" ~)}"^<x>
?~
-
+
-