Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Parcel.elems should flatten (per TimToady++ at yapc::na 2012).
  • Loading branch information
pmichaud committed Jun 18, 2012
1 parent 94a8bbe commit e80b1b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/Parcel.pm
Expand Up @@ -28,10 +28,11 @@ my class Parcel does Positional {
$cap
}

method item() { my $v = self; }
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 elems() { self.flat.elems }
method item() { my $v = self; }
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); }

Expand Down

0 comments on commit e80b1b1

Please sign in to comment.