Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hopefully create a smaller / faster .perl
  • Loading branch information
lizmat committed Jul 8, 2013
1 parent 8bd124f commit 2329a2c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/core/Hash.pm
Expand Up @@ -190,7 +190,9 @@ my class Hash {
bindval)
}
multi method perl(::?CLASS:D \SELF:) {
"Hash[{TValue.perl}].new("
'Hash['
~ TValue.perl
~ '].new('
~ self.pairs.map({.perl}).join(', ')
~ ')';
}
Expand Down Expand Up @@ -268,7 +270,11 @@ my class Hash {
}
}
multi method perl(::?CLASS:D \SELF:) {
"Hash[{TValue.perl},{TKey.perl}].new("
'Hash['
~ TValue.perl
~ ','
~ TKey.perl
~ '].new('
~ self.pairs.map({.perl}).join(', ')
~ ')';
}
Expand Down

0 comments on commit 2329a2c

Please sign in to comment.