Creating a struct with 1D length using unitful.jl

I usually use the following when I’ve build functionality around Unitful.jl. There are many different aliases for common dimensions.

struct Measurements
    heights::Vector{<:Unitful.Length}
end
1 Like