type
PointArr = array of TPoint;
function PointArr.contains(x: TPoint): Boolean;
Is there a simple way to create routines that operates on arrays?
One way i know of is to declare PointArr as 'object', which allows type routines, but i wouldn't be able to use built-in array routines like Length(), SetLength(), [] property etc, so i would have to keep track of the length and implement these custom methods myself which makes it unnecessarily complicated, but is that the only way to achieve what i want?