Closed
Description
The @SVector
macro currently supports functions like rand
, fill
and so on. Is it possible to support StepRange
s? For example, could
ind = @SVector 2:2:N-1
where N
is a type parameter, be allowed?
One use case would be convenient slicing of SArray
s, as discussed here, without the need for writing a custom function for each different slice.
This request might be a special case of the comprehension syntax, which cannot currently make use of type parameters.