On Sat, 3 Oct 2020 15:53:58 +0200 (CEST) Michael Van Canneyt via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
> On Fri, 2 Oct 2020, Ryan Joseph via fpc-pascal wrote: >[...] > > Thanks. Sneaky that sorted had to be set to true. Not sure why that > > would be. > > Because otherwise it would take a linear search to do IndexOf > whenever you insert/append an element in the list. Insert element is linear anyway. Why not set Duplicate to dupAccept as default? > It is in fact documented, so you know: > https://www.freepascal.org/docs-html/current/rtl/fgl/tfpsmap.duplicates.html Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal