Skip to content

Commit 9405b63

Browse files
mapclypstimholy
authored andcommitted
added dimension size parameter to getindex! (#332)
1 parent e1a170a commit 9405b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function _inbounds((l,u)::Tuple{Number,Number}, x::AbstractVector)
9191
ret
9292
end
9393

94-
function getindex!(dest, itp, xs...)
94+
function getindex!(dest, itp, xs::Vararg{AbstractArray,N}) where N
9595
for (i, x) in zip(eachindex(dest), Iterators.product(xs...))
9696
dest[i] = itp(x...)
9797
end

0 commit comments

Comments
 (0)