> But for the 2nd algo, in the Python slice g[i::j][:L] is to loop from index i 
> to end with step j. Not i to j => g[i:j]. Python has this [start:end:step] 
> slice.

That kind of slicing syntax is implemented in arraymancer:

<https://mratsim.github.io/Arraymancer/tuto.slicing.html>

(for arraymancer Tensors).

It should be possible to extract the macro logic for it and use it for 
sequences in theory, but that wouldn't be non trivial.

Reply via email to