We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9d8e6 commit 93d84edCopy full SHA for 93d84ed
src/array_partition.jl
@@ -503,3 +503,5 @@ function Base.convert(::Type{ArrayPartition{T,S}}, A::ArrayPartition{<:Any,<:NTu
503
ntuple((@inline i -> convert(S.parameters[i], A.x[i])), Val(N))
504
)
505
end
506
+
507
+Base.length(::Type{<:ArrayPartition{F,T}}) where {F,T <: Tuple} = T.parameters .|> length |> sum
0 commit comments