Skip to content

Commit

Permalink
Let Parcel.values fall back to Any.values.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jul 11, 2011
1 parent 9d969c0 commit 1478b35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/core/Any.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ my class Any {
method roll($n = 1) { self.list.roll($n) }
method reverse() { self.list.reverse }
method sort($by = &infix:<cmp>) { self.list.sort($by) }
method values() { self.list }

method Array() { Array.new(self.flat) }

Expand Down
1 change: 0 additions & 1 deletion src/core/Parcel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ my class Parcel does Positional {
method list() {
nqp::p6list(nqp::clone($!storage), List, Mu)
}
method values() { self.list }

method lol() {
nqp::p6list(nqp::clone($!storage), LoL, Mu)
Expand Down

0 comments on commit 1478b35

Please sign in to comment.