[PD] finding index from table value

Mathieu Bouchard matju at artengine.ca
Thu Jun 10 19:49:49 CEST 2010

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

More information about the Pd-list mailing list