Skip to content

Commit

Permalink
Reduction spree in control
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Aug 9, 2018
1 parent d9be6e1 commit d168cef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/control.pm6
Expand Up @@ -201,20 +201,20 @@ constant NaN = nqp::p6box_n(nqp::nan());
# method, because then the return value is always HLLized :-(
sub CLONE-HASH-DECONTAINERIZED(\hash) {
nqp::stmts(
(my $clone := nqp::hash),
(my $iter := nqp::iterator(nqp::getattr(hash,Map,'$!storage'))),
(my \clone := nqp::hash),
(my \iter := nqp::iterator(nqp::getattr(hash,Map,'$!storage'))),
nqp::while(
$iter,
nqp::bindkey($clone,
nqp::iterkey_s(nqp::shift($iter)),
iter,
nqp::bindkey(clone,
nqp::iterkey_s(nqp::shift(iter)),
nqp::if(
nqp::defined(nqp::iterval($iter)),
nqp::decont(nqp::iterval($iter)).Str,
nqp::defined(nqp::iterval(iter)),
nqp::decont(nqp::iterval(iter)).Str,
''
)
)
),
$clone
clone
)
}

Expand Down

0 comments on commit d168cef

Please sign in to comment.