Skip to content

Commit 3ade074

Browse files
authored
Update IndexAtom.jl
1 parent e84d666 commit 3ade074

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/atoms/IndexAtom.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,17 @@ function Base.getindex(x::AbstractExpr, rows::AbstractVector{<:Real}, col::Real)
109109
return getindex(x, rows, col:col)
110110
end
111111

112-
function Base.getindex(x::AbstractExpr, I::Union{AbstractMatrix{Bool}, <:BitMatrix})
112+
function Base.getindex(
113+
x::AbstractExpr,
114+
I::Union{AbstractMatrix{Bool},<:BitMatrix},
115+
)
113116
return [xi for (xi, ii) in zip(x, I) if ii]
114117
end
115118

116-
function Base.getindex(x::AbstractExpr, I::Union{<:AbstractVector{Bool}, <:BitVector})
119+
function Base.getindex(
120+
x::AbstractExpr,
121+
I::Union{<:AbstractVector{Bool},<:BitVector},
122+
)
117123
return [xi for (xi, ii) in zip(x, I) if ii]
118124
end
119125

0 commit comments

Comments
 (0)