help?> ...
search: ... ..
...
The "splat" operator, ..., represents a sequence of arguments. ... can be used in function
definitions, to indicate that the function accepts an arbitrary number of arguments. ...
can also be used to apply a function to a sequence of arguments.
Examples
ā”ā”ā”ā”ā”ā”ā”ā”ā”ā”
julia> add(xs...) = reduce(+, xs)
add (generic function with 1 method)
julia> add(1, 2, 3, 4, 5)
15
julia> add([1, 2, 3]...)
6
julia> add(7, 1:100..., 1000:1100...)
111107
The answers above are showing you how to convert your I::Vector into one of the other forms by splatting ... it into either the CartesianIndex constructor or directly into the getindex function call.