Skip to content

Commit

Permalink
Add postcircumfix:<[ ]>(&block) (for Whatever-block handling).
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jun 13, 2010
1 parent 698223e commit 5d21538
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Positional.pm
@@ -1,6 +1,8 @@
role Positional[::T = Mu] {
our multi method postcircumfix:<[ ]>() { self.list }

our multi method postcircumfix:<[ ]>(&block) { self[&block(self.elems)]; }

our multi method postcircumfix:<[ ]>(@index) {
Q:PIR {
.local pmc result, self, flat
Expand Down

0 comments on commit 5d21538

Please sign in to comment.