[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] indexOf behavior



The same happens for remove.
I'm a bit puzzled...

-a-

On 9 May 2009, at 14:17, Andrea Valle wrote:

Hi to all,

y = [ [\the, \symbol], \collection, \contains, \my, \symbol ]; 
y.indexOf([\the, \symbol]); 

Returns nil. 
Shouldn't it return 0?

What am I missing?

Thanks

Best

-a-

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------

- La Repubblica promuove lo sviluppo della cultura e la ricerca scientifica e tecnica.
- La Repubblica detta le norme generali sull'istruzione ed istituisce scuole statali per tutti gli ordini e gradi.
(Costituzione della Repubblica Italiana, art. 9 e 33)



--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------
" This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)


--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------
" This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)