On Thu, 10 Jun 2010, Alexandre Porres wrote:
hi folks, is there any easy and straightforward way to find what is the index, on a table, of some value? Like by sending to some object its value?
[listfind] from GridFlow does it from a list. It doesn't contain an optimisation specifically for sorted lists, though.You can make an abstraction that does it with a sorted list or table in O(log n) time by recursive binary partitioning.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list