Skip to content

Commit a927799

Browse files
hotfix arraypartition display
1 parent bc55c54 commit a927799

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/array_partition.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,8 @@ Juno.@render Juno.Inline x::ArrayPartition begin
9696
Juno.LazyTree(typeof(x), () -> [Juno.SubTree(Juno.Text("$f"), Juno.getfield′(x, f)) for f in fields])
9797
end
9898
Base.summary(A::ArrayPartition) = string(typeof(A), " with arrays:")
99-
Base.show(A::ArrayPartition) = (Base.show.(A.x); nothing)
100-
Base.display(A::ArrayPartition) = (println(summary(A));display.(A.x);nothing)
101-
Base.show(V::AbstractArray{<:ArrayPartition}) = ((Base.show.(A.x) for A in V); nothing)
102-
Base.display(V::AbstractArray{<:ArrayPartition}) = ((println(summary(A));display.(A.x) for A in V);nothing)
103-
Base.print(A::ArrayPartition) = show(A)
104-
Base.println(A::ArrayPartition) = show(A)
99+
Base.show(io::IO,A::ArrayPartition) = (Base.show.(io,A.x); nothing)
100+
Base.display(io::IO,A::ArrayPartition) = (println(summary(A));display.(io,A.x);nothing)
105101

106102
add_idxs(x,expr) = expr
107103
add_idxs{T<:ArrayPartition}(::Type{T},expr) = :($(expr).x[i])

0 commit comments

Comments
 (0)