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

Reverse vector elements.

Pascal
function Reverse: TVec; overload;

The method reverses vector elements by using the following equation: 

 

This overload reverses all calling vector elements in-place.

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