You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVecInt Class > TVecInt Methods > Reverse Method > TVecInt.Reverse Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVecInt.Reverse Method ()

Reverse vector elements.

Syntax
C#
Visual Basic
public TVecInt Reverse();

The method reverses vector elements by using the following equation: 

 

 

This overload reverses all calling vector elements in-place.

var a: TVecInt; begin CreateIt(a); try a.SetIt([1,2,3,4]); a.Reverse; // a = [4,3,2,1] finally FreeIt(a); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!