Re: [fpc-pascal] FGL.TFPSList Find method needed (binary search)

2019-02-17 Thread Michael Van Canneyt
On Sat, 16 Feb 2019, AlexeyT wrote: 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 can use the rtl-generics

Re: [fpc-pascal] FGL.TFPSList Find method needed (binary search)

2019-02-16 Thread Sven Barth via fpc-pascal
Am Sa., 16. Feb. 2019, 21:30 hat AlexeyT 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

[fpc-pascal] FGL.TFPSList Find method needed (binary search)

2019-02-16 Thread AlexeyT
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)? -- Regards, Alexey ___ fpc-pascal