Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -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

View 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 -> '$;
' !