[fpc-pascal] Get highest element of a StringList

Peter B peter at pblackman.plus.com
Mon Sep 12 13:26:18 CEST 2022


On 12/09/2022 07:52, Jean SUZINEAU via fpc-pascal wrote:
> As Bart suggested, you can use too the for/in loop:  for s in sl do WriteLn( s);
>

And that is IMHO by far the most elegant, and least error prone, representation.

Cheers,
Peter


More information about the fpc-pascal mailing list