Skip to content

Commit

Permalink
Let Parcels participate in postcircumfix:<[ ]>.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jun 24, 2011
1 parent 7233ca4 commit ead83d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Parcel.pm
Expand Up @@ -9,6 +9,10 @@ my class Parcel {
pir::perl6_list_from_rpa__PPPP(List, pir::clone__PP($!storage), Mu)
}

method at_pos(Parcel:D: \$x) { self.flat.at_pos($x); }

multi method postcircumfix:<[ ]>(Parcel:D: \$x) { self.flat.[$x] }

multi method gist(Parcel:D:) {
my @gist;
my Mu $rpa := pir::clone__PP($!storage);
Expand Down

0 comments on commit ead83d4

Please sign in to comment.