You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > Ramp Method > VectorInt.Ramp Method ()
Dew Math for .NET
ContentsIndexHome
Example
var a: TVecInt; begin CreateIt(a); try a.Size(5,int32); a.Ramp(0,2); // [0, 2, 4, 6, 8] finally FreeIt(a); end; end;

 

which is identical to: 

 

CreateIt(a); try a.Size(5,int32); for i:= 0 to a.Length-1 do a[i] := i*2; finally FreeIt(a); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.