Thread: Unique array?
View Single Post
Old Jan 26th, 2006, 10:00 AM   #1
ktsirig
Programmer
 
Join Date: Oct 2005
Posts: 54
Rep Power: 4 ktsirig is on a distinguished road
Unique array?

Hi everybody!
I have a question concering arrays..
Say I have the following array:
(1,12)
(1,13)
(2,14)
(2,15)
(2,3)
(2,16)
(3,15)
(3,3)
(3,20)
(3,5)
(3,6)
(3,20)

Everything is OK except that pair (3,20) is repeated twice. How can I avoid it? 'Map' function is the answer?
ktsirig is offline   Reply With Quote