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 c47e08b commit 8fdf7ccCopy full SHA for 8fdf7cc
src/utils.jl
@@ -56,7 +56,7 @@ end
56
57
function copyat_or_push!(a::AbstractVector{T},i::Int,x,nc::Type{Val{perform_copy}}=Val{true}) where {T,perform_copy}
58
@inbounds if length(a) >= i
59
- if !ismutable(T) || !perform_copy
+ if !ArrayInterface.ismutable(T) || !perform_copy
60
# TODO: Check for `setindex!`` if T <: StaticArray and use `copy!(b[i],a[i])`
61
# or `b[i] = a[i]`, see https://github.com/JuliaDiffEq/RecursiveArrayTools.jl/issues/19
62
a[i] = x
0 commit comments