Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove &infix:<x> in cheats and update version in Any-str.pm
modified:   src/cheats/str-ops.pir
modified:   src/core/Any-str.pm
  • Loading branch information
unobe committed Dec 28, 2009
1 parent 5e19f61 commit da89dd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/cheats/str-ops.pir
Expand Up @@ -34,10 +34,3 @@
$S0 = bxors a, b
.return ($S0)
.end

.sub '&infix:<x>'
.param string left
.param int right
$S0 = repeat left, right
.return ($S0)
.end
2 changes: 1 addition & 1 deletion src/core/Any-str.pm
Expand Up @@ -196,7 +196,7 @@ our proto ord($string) {
$string.ord;
}

multi sub infix:<x>($str, $n) {
our Str proto sub infix:<x>($str, $n) {
$n > 0 ?? ~(pir::repeat__SSI($str, $n)) !! ''
}

Expand Down

0 comments on commit da89dd6

Please sign in to comment.