Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add native str concatenation op
  • Loading branch information
moritz committed May 8, 2012
1 parent 3c92ea2 commit ad3a7b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Str.pm
Expand Up @@ -782,6 +782,9 @@ multi prefix:<~>(Str:D \$a) { $a }
multi infix:<~>(Str:D \$a, Str:D \$b) {
nqp::p6box_s(nqp::concat_s(nqp::unbox_s($a), nqp::unbox_s($b)))
}
multi infix:<~>(str $a, str $b) returns str {
nqp::concat_s($a, $b);
}

multi infix:<x>(Str:D $s, Int:D $repetition) {
$repetition <= 0
Expand Down

0 comments on commit ad3a7b6

Please sign in to comment.