conduit icon indicating copy to clipboard operation
conduit copied to clipboard

Is there an efficient way to walk a vector n elements in?

Open njlr opened this issue 7 years ago • 1 comments

njlr avatar Oct 30 '18 08:10 njlr

although this is possible:

 vector >> drop(n) >> take(m);

Given that this is an random access container I'd suggest implementing an slice / advance operator that is random-access iterator aware.

nikhedonia avatar Oct 31 '18 18:10 nikhedonia