Old lady swallowed a fly: Difference between revisions
Content deleted Content added
Frege and Haskell: concatMap is much more elegant |
SqrtNegInf (talk | contribs) m →{{header|Perl 6}}: flatten .kv output |
||
Line 1,369: | Line 1,369: | ||
my @history = "I guess she'll die...\n"; |
my @history = "I guess she'll die...\n"; |
||
for @victims».kv -> $victim, $_ is copy { |
for (flat @victims».kv) -> $victim, $_ is copy { |
||
say "There was an old lady who swallowed a $victim..."; |
say "There was an old lady who swallowed a $victim..."; |
||