[fpc-pascal] Size of set.

Peter B peter at pblackman.plus.com
Tue May 23 11:22:49 CEST 2023


On 23/05/2023 01:14, Mikael Backman via fpc-pascal wrote:
> Hi,
> basic questions here.
>
> Is there any way to decide the number of elements in a set?
>  there any way to  traverse the elements in a set?
>
> Regards Mikael
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


You can transverse a set with
     for ... in

See "loop with elements" in
https://wiki.freepascal.org/For




More information about the fpc-pascal mailing list