[fpc-pascal] Size of set.

Mattias Gaertner nc-gaertnma at netcologne.de
Tue May 23 13:31:29 CEST 2023


On Tue, 23 May 2023 06:50:08 -0400
James Richters via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:

> >You can transverse a set with
> >     for ... in  

An even better:

for e in TEnum do ; // traverse every possible enum

for e in aSet do ; // traverse only enums in aSet

 
> Interesting, I learned something new, I did now know I could do this
> with FreePascal.  It says it works for Strings and Arrays as well,
> does it also work for StringLists?

Yes

Mattias



More information about the fpc-pascal mailing list