Skip to content

Instantly share code, notes, and snippets.

@ronaldxs
Created November 1, 2015 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronaldxs/9eebbf721b93bc127aac to your computer and use it in GitHub Desktop.
Save ronaldxs/9eebbf721b93bc127aac to your computer and use it in GitHub Desktop.
my @bottles = (flat ((3...2) X~ ' bottles'),
'1 bottle',
'no more bottles',
'99 bottles');
my @actions = (flat 'Take one down and pass it around' xx 4,
'Go to the store and buy some more');
for flat @bottles Z @actions Z @bottles[1..*] {
say "$^a of beer on the wall, $^a of beer. $^b, $^c of beer on the wall.\n".tc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment