Column iterator

Compare with


function f7(yy, x) 
    for i in 1:size(yy, 2)
        y = view(yy, :, i)
        @inbounds y .= x
    end
end

@btime f7($yy, $y)
 169.822 μs (10000 allocations: 468.75 KiB)