Skip to content

Commit 152952c

Browse files
committed
WIP
1 parent 41f6257 commit 152952c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ end
1414
function all_dimensions(f::F, args::AbstractDimensions...) where {F<:Function}
1515
dimension_type = promote_type(typeof(args).parameters...)
1616
dimension_names = static_fieldnames(dimension_type)
17-
for dim in dimension_names
18-
f((getfield(arg, dim) for arg in args)...) || return false
19-
end
20-
return true
17+
return all(
18+
dim -> f((getfield(arg, dim) for arg in args)...)
19+
dimension_names
20+
)
2121
end
2222

2323
Base.float(q::AbstractQuantity{T}) where {T<:AbstractFloat} = convert(T, q)

0 commit comments

Comments
 (0)