Permalink
Browse files

Try adding Any.end.

  • Loading branch information...
1 parent 4c5eec8 commit 10420542357705518cf16de12ecae35edc68081d @colomon colomon committed Sep 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/CORE.setting
View
@@ -377,6 +377,7 @@ my class Any is Mu {
};
}
method elems() { self.flat.elems }
+ method end() { self.defined ?? self.elems - 1 !! -1 }
method iterator() { self.flat.iterator }
method join($sep = "") { self.flat.join($sep) }
method chrs() { chrs(@(self)) }
@@ -1785,7 +1786,6 @@ my class List is Cool does Positional {
}
method reverse() { reverse( @(self) ); }
- method end() { self.elems - 1 }
method categorize ($test) { {}.categorize( $test, self.list ) }
method classify ($test) { {}.classify( $test, self.list ) }

0 comments on commit 1042054

Please sign in to comment.