Created
April 17, 2014 11:46
-
-
Save colomon/10976822 to your computer and use it in GitHub Desktop.
This file contains 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
# Produce a word counts hash per file - totally unshared! | |
my @all_counts = await do for @*ARGS -> $filename { | |
start { | |
slurp($filename).words.Bag | |
} | |
} | |
# Bring them together into a single result. | |
my %totals := [(+)] @all_counts; | |
say %totals.elems; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment