> p.s. > In this case it was the vector-service "bininsert", which i > fortunately happened to detect. I wanted to eliminate duplicate lines > in a string. So i used vec.createFromLines and sort and then i used > bininsert to insert into a second vector - now having unique entries. > I would not be surprised, if there is a better solution in PowerPro > for doing this. >
This is fine. Another approach, if you did not care about the order of the output lines, would be to put each line in has table and then foreach the hash table. h = map.create(256) // or more for bigger number of lines for each line l in lines h[l] +=1 endfor for each entry in h output entry endfor This gives the count of duplicates if you are interested, but it does scrable the output lines.
