3 ms·
Well, if we are putting forth other languages, here's Perl 6: sub pmap(Code $func, @items) { return await @items.map: { start { $func($_) } }
by kbenson 12y ago
Well, if we are putting forth other languages, here's Perl 6:
sub pmap(Code $func, @items) {
return await @items.map: {
start { $func($_) }
}
}