Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #5539 > unrolled thread

My EasyList for Delphi and Freepascal was just updated to version 1.15

Started byaminer68@gmail.com
First post2020-02-10 18:22 -0800
Last post2020-02-10 18:22 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

  My EasyList for Delphi and Freepascal was just updated to version 1.15 aminer68@gmail.com - 2020-02-10 18:22 -0800

#5539 — My EasyList for Delphi and Freepascal was just updated to version 1.15

Fromaminer68@gmail.com
Date2020-02-10 18:22 -0800
SubjectMy EasyList for Delphi and Freepascal was just updated to version 1.15
Message-ID<a7d34394-4b59-438e-bcaf-3f0f7d44bda4@googlegroups.com>
Hello,


My EasyList for Delphi and Freepascal was just updated to version 1.15

I have added a very important method here it is:

FindThisOrFirstGreater() is useful when you want to construct an SQL command like the following:

Select FROM Product
 WHERE UnitPrice > 50

So you have to execute FindThisOrFirstGreater() method of EasyList and it will sort the dynamic array if TEasyList in an ascending order if it isn't sorted in ascending order, and it will find the Item of UnitPrice of 50 or the First Item of greater than UnitPrice of 50 , and after that it is easy to construct this SQL command.

And if FindThisOrFirstGreater() method doesn't find the Item it will return -1.

Both Find() and FindThisOrFirstGreater() use a binary search, so they have a log(n) time complexity and they are very fast.


You can read about and download my new EasyList from my website here:

https://sites.google.com/site/scalable68/easylist-for-delphi-and-freepascal



Thank you,
Amine Moulay Ramdane.

[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web