We have sincos, why not cossin? I have no idea why sincos is here and not cossin (perhaps because of the “awkward” ss in the name…), but for me the convention of xy in a 2D coordinate means that calculating a new coordinate from a known point, angle, and distance is awkward with a sincos function:
xy = SVector(1.0,2.0)
α = π/2
l = 1
xy2 = xy + l*SVector(sincos(α))[2:-1:1] # note the reordering of the elements
Maybe you have an explanation or a better solution?
reverse(v [, start=1 [, stop=length(v) ]] )
**Return a copy of v** reversed from start to stop. See also Iterators.reverse for reverse-order
iteration without making a copy.
Depending on the interpretation there is a copy. It just doesn’t matter. Fwiw, by that interpretation it’s almost for sure that the iterator version is also making a copy.