vorrei ottenere un array finale vuoto perchè gli indici di mappa1 e gli indici di mappa2 sono gli stessi , non ce n'è di piu' ne di meno.Scusa, ma continuo a non capire. Partendo da questo:
codice:
mappa1[0] = new object A(0, 0,0, "testo stringa0")
mappa1[2] = new object A(2, 2,2, "testo stringa2")
mappa1[4] = new object A(4, 4,4, "testo stringa4")
mappa2[0] = new object A(2, 4,5, "testo stringa0seconda")
mappa2[2] = new object A(2, 4,5, "testo stringa1seconda")
mappa2[4] = new object A(2, 4,5, "testo stringa4seconda")
e usando ad esempio set_difference, che risultato vorresti ottenere?
cosi con difference vorrei ottenere un array finale con un elemento al'indice 5 con un object 4,4,4 "testo stringa5"codice:mappa1[0] = new object A(0, 0,0, "testo stringa0") mappa1[2] = new object A(2, 2,2, "testo stringa2") mappa1[4] = new object A(4, 4,4, "testo stringa4") mappa1[5] = new object A(4, 4,4, "testo stringa5") mappa2[0] = new object A(2, 4,5, "testo stringa0seconda") mappa2[2] = new object A(2, 4,5, "testo stringa1seconda") mappa2[4] = new object A(2, 4,5, "testo stringa4seconda")
con un union vorrei ottenere:
indice 0=> A(0, 0,0, "testo stringa0")
indice2=> A(2, 2,2, "testo stringa2")
indice4=> A(4, 4,4, "testo stringa4")
indice5=> A(4, 4,4, "testo stringa5")
non mi inporta nella differenza o nell' union la classe object per la ricerca della differenza o dell'union.
grazie.

Rispondi quotando