View a scalar as a vector/array

Sounds like you want https://github.com/JuliaArrays/FillArrays.jl

3 Likes