How do I create a new Array-like type with only ints and strings?

You can also take this approach:

julia> IntString = Union{Int,String}
Union{Int64, String}

julia> IntString[23 "dd"; "er" 24]
2×2 Array{Union{Int64, String},2}:
 23        "dd"
   "er"  24

See this section of the docs.

3 Likes