Created
June 28, 2013 02:42
-
-
Save colomon/5882090 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
multi method categorize( &test, *@list ) { | |
fail 'Cannot .categorize an infinite list' if @list.infinite; | |
for @list { | |
say $_; | |
for test($_) -> $k { | |
say :$k.perl; | |
say "blue" ~ $_; | |
self{$k}.push: 1; | |
say self{$k}.perl; | |
} | |
} | |
self; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment