You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Shift Method > Vector.Shift Method (integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.Shift Method (integer)

Shift vector elements.

Pascal
function Shift(Offset: integer): TVec; overload;

Shifts calling vector elements. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

var a: Vector; begin a.SetIt(False,[1,-2,3,0]); a.Shift(1); // a = 1,1,-2,3 end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!