Skip to content
Permalink
Browse files

infix:<~> can also return junctions

Fixes R#2568
  • Loading branch information...
lizmat committed Dec 31, 2018
1 parent 467394b commit 0368fe95bec9786dd214fdb61ecc663e0815f0af
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/Str.pm6
@@ -3030,8 +3030,8 @@ multi sub infix:<~>(Str:D \a, Any:D \b --> Str:D) {
# Any/Any candidate in src/core/Stringy.pm6

multi sub infix:<~>(str @args --> str) { nqp::join('',@args) }
multi sub infix:<~>(@args --> Str:D) { @args.join }
multi sub infix:<~>(*@args --> Str:D) { @args.join }
multi sub infix:<~>(@args) { @args.join }
multi sub infix:<~>(*@args) { @args.join }

multi sub infix:<x>(Str:D $s, Bool:D $repetition --> Str:D) {
nqp::if($repetition, $s, '')

2 comments on commit 0368fe9

@JJ

This comment has been minimized.

Copy link
Contributor

replied Dec 31, 2018

Uh, oh, this is causing some trouble:

 jmerelo, rakudo-moar 0368fe95b: OUTPUT: «Cannot test 0368fe95bec9786dd214fdb61ecc663e0815f0af (Commit exists, but a perl6 executable could not be built for it)»     
@lizmat

This comment has been minimized.

Copy link
Contributor Author

replied Dec 31, 2018

weird, builds/tests fine for me?

Please sign in to comment.
You can’t perform that action at this time.