Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all articles
Browse latest Browse all 39545

Other way to retrieve index of duplicate elements

$
0
0

@gethze.arq wrote:

I have a list with elements (sometimes letters, sometimes coordinates). I want to list the index of the duplicate elements. The “sort duplicate values” component does not work for this case because I need to retrieve the duplicate element index or null for each element in the same order that the original list is.

In other words, I would like the list to look like the attached image (null values are important to me).

retrieve%20index%20of%20duplicate
I think it could be solved with a ghpyton script, but I’m starting to learn it.

Posts: 8

Participants: 6

Read full topic


Viewing all articles
Browse latest Browse all 39545

Trending Articles