diff --git a/lib/Cro/Uri.pm6 b/lib/Cro/Uri.pm6 index 614b49c..ae665e6 100644 --- a/lib/Cro/Uri.pm6 +++ b/lib/Cro/Uri.pm6 @@ -250,24 +250,21 @@ class Cro::Uri does Cro::ResourceIdentifier { method path-abempty($/) { my $result = ''; - for @$ { - $result ~= '/'; - $result ~= $_.ast with $_; - } + $result ~= '/' ~ (.ast with $_) for @$; make $result; } method path-absolute($/) { my $result = '/'; $result ~= $_.ast with $; - $result ~= '/' ~ $_.ast for @$; + $result ~= '/' ~ (.ast with $_) for @$; make $result; } method path-rootless($/) { my $result = ''; $result ~= $_.ast with $; - $result ~= '/' ~ $_.ast for @$; + $result ~= '/' ~ (.ast with $_) for @$; make $result; }