function Concat(const Src: TVecInt[]): VectorInt;
Concatenates an array of TVecInt (VectorInt) objects and returns a combined array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVecInt[] |
Returns: VectorInt
Examples
var a,b,c,d: TVecInt;
begin
CreateIt(a,b,c,d);
try
a.SetIt([1,2,3]);
b.Copy(a);
c.Concat([a,b]); // c = [1,2,3,1,2,3]
d.Size(10);
d.SetZero(0,4);
d.Concat(4,[c]); // d = [0,0,0,0,1,2,3,1,2,3]
finally
FreeIt(a,b,c,d);
end;
end;