Created
May 10, 2018 18:38
-
-
Save dakkar/22c2698cac3899fefa8a8416646d076f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my @fizzes = (['','','Fizz'] xx *).flat; | |
my @buzzes = (['','','','','Buzz'] xx *).flat; | |
my @words = (@fizzes Z~ @buzzes); | |
my @numbers = 1 .. *; | |
my @fizzbuzz = (@numbers Z @words).map( *.max ); | |
.say for @fizzbuzz[^20]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment