Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed P5Str for Array/List
  • Loading branch information
FROGGS committed May 22, 2013
1 parent 59ca6bd commit 76db4d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Perl5/Terms.pm
Expand Up @@ -114,12 +114,12 @@ augment class Bool {

augment class Array {
multi method P5Str(Array:U:) { '' }
multi method P5Str(Array:D:) { join '', map { $_ ?? $_.P5Str !! '' }, @(self) }
multi method P5Str(Array:D:) { join '', map { $_.defined ?? $_.P5Str !! '' }, @(self) }
}

augment class List {
multi method P5Str(List:U:) { '' }
multi method P5Str(List:D:) { join '', map { $_ ?? $_.P5Str !! '' }, @(self) }
multi method P5Str(List:D:) { join '', map { $_.defined ?? $_.P5Str !! '' }, @(self) }
}

augment class Str {
Expand Down

0 comments on commit 76db4d2

Please sign in to comment.