[fpc-pascal] Generic routines for both dynamic array and other collections

Ryan Joseph genericptr at gmail.com
Tue Feb 23 21:45:20 CET 2021



> On Feb 22, 2021, at 4:21 PM, Виктор Матузенко via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> Example of such an algorithm is binary search. I am able to access elements with [] operator of both
> arrays and objects, but I cannot get length in a generic way.
> 

Length(T) is what you want right?

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list