Browse files

Let Parcels participate in postcircumfix:<[ ]>.

  • Loading branch information...
1 parent 7233ca4 commit ead83d45cc3979e3909800c19455b21deca568f6 @pmichaud pmichaud committed Jun 24, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/Parcel.pm
View
4 src/core/Parcel.pm
@@ -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);

0 comments on commit ead83d4

Please sign in to comment.