We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8014e6 commit cfc6041Copy full SHA for cfc6041
src/varnamedtuple.jl
@@ -67,6 +67,18 @@ struct ArrayLikeBlock{T,I}
67
end
68
69
70
+function Base.show(io::IO, alb::ArrayLikeBlock)
71
+ # Note the distinction: The raw strings that form part of the structure of the print
72
+ # out are `print`ed, whereas the keys and values are `show`n. The latter ensures
73
+ # that strings are quoted, Symbols are prefixed with :, etc.
74
+ print(io, "ArrayLikeBlock(")
75
+ show(io, alb.block)
76
+ print(io, ", ")
77
+ show(io, alb.inds)
78
+ print(io, ")")
79
+ return nothing
80
+end
81
+
82
_blocktype(::Type{ArrayLikeBlock{T}}) where {T} = T
83
84
"""
0 commit comments