I’d like to initialize an array of type Array{Union{Missing,Float64},2}
with a Float64 value. What’s the most succinct way?
If you were initializing an Array{Float32,2}
with 3.14, you would be doing
a = fill(Float32(3.14), 2, 3)
By extension, I thought
a = fill(Union{Missing,Float64}(3.14), 2, 3)
would do the job, but it results in an error.
For that matter, I don’t know how to construct a Union{Missing,Float64}
value from a Missing
or from a Float64
.
[This clearly shows that I don’t know what Typename()
is. ]