The DelphiDabbler.Lib.ArrayUtils.pas
unit provides a single "Advanced" record, TArrayUtils, that contains static methods that manipulate generic arrays.
For full details of the available methods, and examples of use, see the comprehensive online documentation. There is no help file.
DUnit tests for TArrayUtils are included in the download along with a demo project that contains all the example code that is included in the documentation.
⚠️ Warning: This is v0.x initial development code. Anything may change at any time. The public API should not be considered stable.Once v1.0.0 has been released then the API will be stable and the principles of semantic versioning will be followed.
This unit requires Delphi XE as a minimum and has been tested on Delphi XE (32 bit build) and Delphi 12 (32 bit and 64 bit builds).
The Array Utilities Unit documentation, test suite and demo code are supplied in a zip file. Before installing you need to extract all the files from the zip file, preserving the directory structure. The following files will be extracted:
DelphiDabbler.Lib.ArrayUtils.pas
– Main source code.README.md
– The unit's read-me file.MPL-2.txt
– Mozilla Public License v2.0.CHANGELOG.md
– The project's change log.Documentation.URL
– Short-cut to the online documentation.
In addition to the above files you will find the DUnit tests in the Test
sub-directory and the demo code in the Demos
sub-directory.
There are four possible ways to use the unit.
- The simplest way is to add
DelphiDabbler.Lib.ArrayUtils.pas
to your projects as you need it. - To make the unit easier to re-use you can either copy it to a folder on your Delphi search path, or add the folder containing the unit to the Delphi Search path. You then simply use the unit as required without needing to add it to your project.
- For maximum portability you can add the unit to a Delphi package. If you need help doing this see here.
- If you use Git you can add the
ddablib/arrayutils
GitHub repository as a Git submodule and add it to your project. Obviously, it's safer if you fork the repo and use your copy, just in caseddablib/arrayutils
ever goes away.
A complete change log is provided in the file CHANGELOG.md
that is included in the download.
The Array Utilities Unit (DelphiDabbler.Lib.ArrayUtils.pas
) is released under the terms of the Mozilla Public License v2.0.
All relevant trademarks are acknowledged.
Bugs can be reported or new features requested via the project's Issue Tracker. A GitHub account is required.
Please check if an issue has already been created for a similar report or request. If so then please add a comment containing as much information you can to the existing issue, or if you've nothing to add, just add a 👍 (:+1:
) comment. If there is no suitable existing issue then please add a new issue and give as much information as possible.
I'm Peter Johnson – a hobbyist programmer living in Ceredigion in West Wales, UK, writing mainly in Delphi. My programs and other library code are available from: https://delphidabbler.com/.
This document is copyright © 2025, Peter Johnson.