Permalink
Browse files

Code cleanup in Parcel, no functional changes.

  • Loading branch information...
1 parent 43975a1 commit db817487425b81e6e2c3a4f72cef106413c4e2e7 @pmichaud pmichaud committed Jun 7, 2012
Showing with 4 additions and 13 deletions.
  1. +1 −1 src/core/MapIter.pm
  2. +3 −12 src/core/Parcel.pm
View
@@ -1,7 +1,7 @@
my class MapIter is Iterator {
has $!reified; # Parcel we return after reifying
has Mu $!listiter; # the list we're consuming
- has $!flattens; # flag to flatten input list
+ has Mu $!flattens; # flag to flatten input list
has $!block; # the block we're applying
has $!first; # Is this the first iterator in the sequence?
has Mu $!items; # reified items we haven't consumed yet
View
@@ -28,19 +28,10 @@ my class Parcel does Positional {
$cap
}
- method flat() {
- nqp::p6list(nqp::clone($!storage), List, Bool::True)
- }
-
method item() { my $v = self; }
-
- method list() {
- nqp::p6list(nqp::clone($!storage), List, Mu)
- }
-
- method lol() {
- nqp::p6list(nqp::clone($!storage), LoL, Mu)
- }
+ method flat() { nqp::p6list(nqp::clone($!storage), List, Bool::True) }
+ method list() { nqp::p6list(nqp::clone($!storage), List, Mu) }
+ method lol() { nqp::p6list(nqp::clone($!storage), LoL, Mu) }
method at_pos(Parcel:D: \$x) is rw { self.flat.at_pos($x); }

0 comments on commit db81748

Please sign in to comment.