A single value that acts like a vector?

I am pretty sure this is a common type to use, but what is the name of something like

fill(5.0, 100)

where the array itself is just 5 pointers to the same place memory? Something that acts like a vector, but doesn’t allocate like one.

Do you mean something like https://github.com/JuliaArrays/FillArrays.jl?

2 Likes

Thank you!