I am wondering how to coax show etc to print a StaticArrays.SUnitRange as is, not as a vector of indices. I tried the usual suspects for options in IOContext, didn’t work. I am not even sure if this is intended or a bug.
julia> using StaticArrays: SUnitRange
julia> s1 = SUnitRange{1,2}()
SUnitRange(1,2)
julia> x = (s1,s1)
([1, 2], [1, 2])
julia> show(IOContext(stdout, :compact => false, :limit => false), x)
([1, 2], [1, 2])
julia> x[1] # I want elements printed like this
SUnitRange(1,2)
SUnitRange is not an abstract range so it will fall back to array printing. It prints like SUnitRange(1,2) in the REPL because it has an overloaded MIME"text/plain" method. I don’t think there is a way for containers to have their elements to print as MIME"text/plain.
Perhaps StaticArrays is missing a standard show method for SUnitRange?