my $invoke = DX::Op::FromCode->new(
code => sub {
my ($self, $state) = @_;
- my ($names, $body) = @{$var->bound_value};
- my %new; @new{@$names} = @args;
- $state->but(scope => {})->assign_vars(%new)->then($body);
+ my $call = $var->bound_value->but(args => \@args);
+ $state->but(scope => {})->then($call);
}
);
my $ret_op = DX::Op::SetScope->new(