I want to create a vector of `SVectors`

. I have to create all `SVectors`

on the spot, given a formula that I know, and given also the dimensionality I know. The dimensionality can also be type-parameter, there is no problem with that (I already have a type that has it as a type parameter).

The problem is, the formula is accessing the elements of an array one by one, so I cannot reduce it to basic julia functions where `SVector`

s know how to do their thing.

In short, this is what I am doing now:

```
function reconstruct(s::AbstractVector, D::Int, Ď„::Int)
L = length(s) - (D-1)*Ď„;
T = eltype(s)
data = Vector{SVector{D, T}}(L)
for i in 1:L
gen = (s[i+k*Ď„] for k in 0:(D-1))
data[i] = SVector{D,T}(gen...)
end
V = typeof(s)
T = eltype(s)
return data
end
```

(once again: both `Ď„`

and `D`

can be made type-parameters if need be)

I am quite sure that using a generator is not the most performant thing to do. I got a hunch that the most performant version would involve meta-programming and `@generated`

? But unfortunately I do not have any metaprogramming skills whatsoever currently so I am asking for assistance!