#N canvas 527 144 632 441 10; #X obj 0 0 doc_h; #X obj 0 407 doc_f; #X floatatom 14 38 5 0 0 0 - - -; #X floatatom 14 125 5 0 0 0 - - -; #X text 214 94 find the position of an element (float or symbol) in a list \, or -1 if it is not found. in case of duplicate elements \, it only tells the position of the first occurrence.; #X obj 3 153 doc_c any; #X obj 14 183 doc_cc any; #X obj 97 183 doc_m cany ; #X obj 3 215 doc_i 1; #X obj 14 245 doc_ii 0; #X obj 97 245 doc_m i0 float; #X obj 97 280 doc_m i0 symbol; #X text 232 280 look for a symbol.; #X text 232 245 look for a float. this has the same gotchas as using [==] and [sel] \, about the precision of numbers.; #X obj 3 312 doc_o 1; #X obj 14 342 doc_oo 0; #X obj 97 342 doc_m o0 float int; #X text 232 342 nonnegative list index of first occurrence \, or -1 if not found.; #X obj 3 387 doc_also; #X obj 103 387 listread; #X obj 14 106 listfind 2 3 5 papillon 7 11 13; #X msg 20 57 symbol papillon; #X text 93 79 don't; #X msg 28 79 bang \, list; #X text 232 183 the list to be searching in; #X connect 2 0 20 0; #X connect 7 1 24 0; #X connect 10 1 13 0; #X connect 11 1 12 0; #X connect 16 1 17 0; #X connect 18 1 19 0; #X connect 20 0 3 0; #X connect 21 0 20 0; #X connect 23 0 20 0;