This is an odd scenario, but I would use a Set collection class (http://msdn.microsoft.com/en-us/library/set.aspx) where values are stored uniquely, and just load/unload it to the next container like such:
Well how do you want to do it? The most efficient way would be a set (2 lines of code). It starts becoming very inefficient when you use other methods, such as searching the entire container each time for an occurrence if that’s what you want:
static void Job38(Args _args)
{
container c1 = [1,2,2,3,4,5,6,6,7,7,8];
container c2;
int i;
int conVal;
;
for (i=1; i<=conlen(c1); i++)
{
// Store what we find
conVal = conPeek(c1, i);
// Search the container to see if it already exists, if not insert