Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Streamline Map.new, for better inlining
  • Loading branch information
lizmat committed Nov 10, 2015
1 parent d2b4941 commit 7099c76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Map.pm
Expand Up @@ -5,9 +5,9 @@ my class Map does Iterable does Associative { # declared in BOOTSTRAP
# has Mu $!storage;

method new(*@args) {
my %h := nqp::create(self);
%h.STORE(@args) if @args;
%h;
@args
?? nqp::create(self).STORE(@args)
!! nqp::create(self)
}

multi method Hash(Map:U:) { Hash }
Expand Down

0 comments on commit 7099c76

Please sign in to comment.