Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Any.end/elems
  • Loading branch information
lizmat committed Jan 12, 2015
1 parent 27c2d5a commit 6a3fc31
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/core/Any.pm
Expand Up @@ -54,9 +54,15 @@ my class Any { # declared in BOOTSTRAP

# derived from .list
method Parcel() { self.list.Parcel }
method elems() { self.list.elems }

proto method elems(|) { * }
multi method elems(Any:U:) { 0 }
multi method elems(Any:D:) { self.list.elems }

proto method end(|) { * }
multi method end() { self.list.end }
multi method end(Any:U:) { -1 }
multi method end(Any:D:) { self.list.end }

method squish(|c) { self.list.squish(|c) }
method rotor(|c) { self.list.rotor(|c) }
method reverse() { self.list.reverse }
Expand Down

0 comments on commit 6a3fc31

Please sign in to comment.