I'm looking at a couple subroutines submitted for solutions to exercism that are much more concise than my own. I'm hoping for some insight:

sub accumulate(@input, $sub) is export {
@input».$sub
}