We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0df938c commit f403f0cCopy full SHA for f403f0c
1 file changed
src/tensors/blockiterator.jl
@@ -62,3 +62,17 @@ function show_blocks(io, iter)
62
print(io, ")")
63
return nothing
64
end
65
+
66
+function Base.summary(io::IO, b::BlockIterator)
67
+ print(io, "blocks(")
68
+ Base.showarg(io, b.t, false)
69
+ print(io, ")")
70
+ return nothing
71
+end
72
73
+function Base.show(io::IO, mime::MIME"text/plain", b::BlockIterator)
74
+ summary(io, b)
75
+ println(io, ":")
76
+ show_blocks(io, mime, b)
77
78
0 commit comments