Fill function for a tuple

ntuple is probably what you are looking for.

julia> ntuple(i->1, 4)
(1, 1, 1, 1)

julia> typeof(ans)
NTuple{4, Int64}
4 Likes