Re: [PD-dev] externals wanted ...

Mathieu Bouchard matju at artengine.ca
Wed Jul 20 22:26:46 CEST 2005


On Wed, 20 Jul 2005, Georg Holzmann wrote:

> >>[1 3 5 4 (
> >>this should give 2 as result (because 5 is the biggest element)
> no, I meant "2", because "5" is the biggest element and has the index "2"
> (if you count from 0) ...
> but I have just written it ...
> (but if someone knows such an object please let me know and I'll forget mine

[1 3 5 4(
 |
[#grade]
 |
[#export_list]
 |
[t b    l]
 |      |
[3(     |
 |      |
[listfind]
 |
profit!

actually the [3( is the list length minus 1... if you want to find the 
smallest element use [0(. If you want the median, use the list length 
divided by 2. You can also get quartiles and centiles by similar ways.

,-o--------o--------o--------o-. ,---. irc.freenode.net #dataflow |
| The Diagram is the Program tm| | ,-o-------------o--------------o-.
`-o------------o-------------o-' | | Mathieu Bouchard (Montréal QC) |
  | téléphone:+1.514.383.3801`---' `-o-- http://artengine.ca/matju -'




More information about the Pd-dev mailing list