Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Map.perl representation
  • Loading branch information
lizmat committed Oct 30, 2015
1 parent 34c5a7a commit cc9c7c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Map.pm
Expand Up @@ -51,9 +51,9 @@ my class Map does Iterable does Associative { # declared in BOOTSTRAP

multi method perl(Map:D:) {
self.^name
~ '.new('
~ self.pairs.sort.map({.perl}).join(', ')
~ ')';
~ '.new(('
~ self.pairs.sort.map({.perl}).join(',')
~ '))';
}

method iterator(Map:) { self.pairs.iterator }
Expand Down

0 comments on commit cc9c7c1

Please sign in to comment.