SkillAgentSearch skills...

TArrayEx

Delphi: Advanced record based generic array.

Install / Use

/learn @rgreat/TArrayEx
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Generic Array with extra features.

Basically:

  TArrayEx<T> = record
    Items      : array of T;
    // a lot of stuff
  end;

Basic usage:

var
  A : TArray<Integer>;
  B,C : TArrayEx<Integer>;
begin  
  A := [5,6,7,8,9];
  B := [1,2,3,4,5];
  C := A + B;  // concat and implicit typecast

  WriteLn(C.ToString);  // To string RTTI conversion
  WriteLn('A + B = C is ', A + B = C); // compare arrays

  C.Add(10);
  C.AddUnique(10);  // will not be added
  C.Delete(C.High); // delete last
  WriteLn(C.Exists(10)); // should be false

  // More features are shown in example and in unit code.
end.

License: Freeware. Use as you see fit.

Related Skills

View on GitHub
GitHub Stars33
CategoryDevelopment
Updated23d ago
Forks4

Languages

Pascal

Security Score

75/100

Audited on Mar 11, 2026

No findings