Open vadrer opened 3 years ago
And yet it is correct and your untested change unfortunately is the incorrect one. The callback you specify is not called with each element as an argument $cb->($el);
, but with it as a localized default variable, as in grep()
and map()
: { local $_ = $el; $cb->(); }
.
ok, thank you for the correction!
a correction -
$_->size
looks incorrect