Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix .join for lists starting with an undefined value
  • Loading branch information
sorear committed Feb 18, 2011
1 parent 1b13b31 commit b4c48f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SAFE.setting
Expand Up @@ -605,7 +605,7 @@ my class List is Cool {
method join($sep = '') {
my $t;
for unitem(self) -> $x {
$t = (defined($t) ?? ($t ~ ($sep ~ $x)) !! $x);
$t = (defined($t) ?? ($t ~ $sep ~ $x) !! ~$x);
}
$t // '';
}
Expand Down

0 comments on commit b4c48f4

Please sign in to comment.