Re ugly: well, eye of the beholder I suppose.
def square(float x) float : x*x def main(array<float, 256> a) array<float, 256> : map(square, a)
sub pmap(Code $func, @items) { return await @items.map: { start { $func($_) } } }
def square(float x) float : x*x def main(array<float, 256> a) array<float, 256> : map(square, a)