pure func square(x: Int) -> Int { return x * x } pure func add(x: Int, y: Int) -> Int { return x + y } func main() { let input: Int[8] = [...] let squares = map(square, input) let sum = @reduce(add, 0, squares) } class HardwareMap { func map(Self) -> Self }