@@ -30,13 +30,14 @@ BroadcastStyle(::PseudoBlockStyle{M}, ::BlockStyle{N}) where {M,N} = BlockStyle(
3030
3131# sortedunion can assume inputs are already sorted so this could be improved
3232sortedunion (a,b) = sort! (union (a,b))
33+ sortedunion (a:: Tuple , b:: Tuple ) = (a... , b... )
3334sortedunion (a:: Base.OneTo , b:: Base.OneTo ) = Base. OneTo (max (last (a),last (b)))
3435sortedunion (a:: AbstractUnitRange , b:: AbstractUnitRange ) = min (first (a),first (b)): max (last (a),last (b))
3536combine_blockaxes (a, b) = _BlockedUnitRange (sortedunion (blocklasts (a), blocklasts (b)))
3637
37- Base. Broadcast. axistype (a:: BlockedUnitRange , b:: BlockedUnitRange ) = length (b) == 1 ? a : combine_blockaxes (a, b)
38- Base. Broadcast. axistype (a:: BlockedUnitRange , b) = length (b) == 1 ? a : combine_blockaxes (a, b)
39- Base. Broadcast. axistype (a, b:: BlockedUnitRange ) = length (b) == 1 ? a : combine_blockaxes (a, b)
38+ Base. Broadcast. axistype (a:: BlockedUnitRange , b:: BlockedUnitRange ) = combine_blockaxes (a, b)
39+ Base. Broadcast. axistype (a:: BlockedUnitRange , b) = combine_blockaxes (a, b)
40+ Base. Broadcast. axistype (a, b:: BlockedUnitRange ) = combine_blockaxes (a, b)
4041
4142
4243similar (bc:: Broadcasted{<:AbstractBlockStyle{N}} , :: Type{T} ) where {T,N} =
0 commit comments