Am Sa., 16. Feb. 2019, 21:30 hat AlexeyT <aaa5...@ya.ru> geschrieben:

> Hello. Can you pls, add Sorted property to TFPSList / TFPGList (Add()
> method must sort newly added item), and also Find method (which must use
> binary search in Sorted case, and use plain loop if not sorted)
>

You could also check whether rtl-generics already provides what you need.

Just in case anyone wants to add this (I won't): this also requires
properties for a comparer and a compare algorithm (essentially the
arguments to Sort) as TFPGList<> should not require the presence of a
comparison operator in the generic parameter type.

Regards,
Sven

>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to