diff --git a/src/utils.jl b/src/utils.jl index fa408e38..907d04e2 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -148,8 +148,8 @@ copyat_or_push!{T}(a::AbstractVector{T},i::Int,x) If `i= i if !ArrayInterfaceCore.ismutable(T) || !perform_copy # TODO: Check for `setindex!`` if T <: StaticArraysCore.StaticArray and use `copy!(b[i],a[i])` @@ -171,7 +171,11 @@ function copyat_or_push!(a::AbstractVector{T},i::Int,x,nc::Type{Val{perform_copy end nothing end - + +function copyat_or_push!(a::AbstractVector{T},i::Int,x,nc::Type{Val{perform_copy}}) where {T, perform_copy} + copyat_or_push!(a,i,x,perform_copy) +end + """ ```julia recursive_one(a)