You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case the src array is shorter an error is thrown:
julia> map!(i->-i,ChainedVector([[1,2,3]]),[10:11...])
ERROR: MethodError: no method matching getindex(::Nothing, ::Int64)
The function `getindex` exists, but no method is defined for this combination of argument types.
Stacktrace:
[1] map!(f::var"#1#2", x::ChainedVector{Int64, Vector{Int64}}, A::Vector{Int64})
@ SentinelArrays ~/.julia/packages/SentinelArrays/vt8A6/src/chainedvector.jl:781
[2] top-level scope
@ REPL[8]:1
This is due to the fact that the implementation iterates the destination array instead of the src array.
The text was updated successfully, but these errors were encountered:
laborg
changed the title
map!(f,dest::ChainedVector,src::AbstractArray) doesnt work for shorter src`map!(f,dest::ChainedVector,src::AbstractArray) doesn't work for shorter srcDec 23, 2024
In case the src array is shorter an error is thrown:
This is due to the fact that the implementation iterates the destination array instead of the src array.
The text was updated successfully, but these errors were encountered: