We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9e6577 commit 9310c5dCopy full SHA for 9310c5d
src/deque.jl
@@ -72,6 +72,7 @@ end
72
73
# Immutable version of setindex!(). Seems similar in nature to the above, but
74
# could also be justified to live in src/indexing.jl
75
+import Base: setindex
76
@inline setindex(a::StaticArray, x, index::Int) = _setindex(Size(a), a, convert(eltype(typeof(a)), x), index)
77
@generated function _setindex(::Size{s}, a::StaticArray{<:Any,T}, x::T, index::Int) where {s, T}
78
exprs = [:(ifelse($i == index, x, a[$i])) for i = 1:s[1]]
0 commit comments