# List and index repeated items

**URL:** <https://forum.dynamobim.com/t/list-and-index-repeated-items/6363>\
**Category:** Lists-Logic\
**Created:** [September 26, 2016, 3:29am UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363 "2016-09-26T03:29:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpTrujilloLevy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jptrujillolevy/32/13800_2.png) [@jpTrujilloLevy](https://forum.dynamobim.com/u/jpTrujilloLevy)\
**Post date:** [September 26, 2016, 3:29am UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/1 "2016-09-26T03:29:49Z")

</div>

Hello forum

In my list I have a repeated value at the items 0 and 12 and anothers repeated values.  
The nodes for listing and indexing repeated items is not working like I expected.  
My way to get unique items was pruning duplicates and get diferences from the main list. At List.AllIndicesOf I hope see for the first sub list the 0 and 12 indices but just got 12.  
Im working with Dynamo 1.1.0.2094 and Revit 2016 service pack 2, windows 10 64bits.

Thanks for help  
[Prueba.dyn](https://forum.dynamobim.com/uploads/short-url/9IDtVv1lA0TC5ulUSHcaQ23zWf8.dyn) (19.2 KB)  
[Prueba.rfa](https://forum.dynamobim.com/uploads/short-url/fyfazkF8oXKgMXu9k0mjRZEdNul.rfa) (448 KB)

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/2/2800207348ef43cb325f0236c3842bcb5b600f95.png)

---

<div class="post-metadata">

**Author:** ![jpTrujilloLevy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jptrujillolevy/32/13800_2.png) [@jpTrujilloLevy](https://forum.dynamobim.com/u/jpTrujilloLevy)\
**Post date:** [September 26, 2016, 1:59pm UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/2 "2016-09-26T13:59:49Z")

</div>

Someone can tell me what happen in the job?

---

<div class="post-metadata">

**Author:** ![Timon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/timon/32/12035_2.png) [@Timon](https://forum.dynamobim.com/u/Timon)\
**Post date:** [September 26, 2016, 2:35pm UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/3 "2016-09-26T14:35:51Z")

</div>

Have you tried group by key?

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [September 29, 2016, 3:45am UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/4 "2016-09-29T03:45:38Z")

</div>

@jpTrujilloLevy Reconstructing the points should help

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/1/1da5de9aec50fda457b918e762f2181e21d76fcb.png)

---

<div class="post-metadata">

**Author:** ![jpTrujilloLevy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jptrujillolevy/32/13800_2.png) [@jpTrujilloLevy](https://forum.dynamobim.com/u/jpTrujilloLevy)\
**Post date:** [October 14, 2016, 11:44pm UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/5 "2016-10-14T23:44:09Z")

</div>

Thanks @Vikram_Subbaiah . Gonna test  
I see… reconstructing points. Is this a “hard way” to get the result… Can I supose there is something weird in the sofrware?

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [October 15, 2016, 1:24pm UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/6 "2016-10-15T13:24:02Z")

</div>

@jpTrujilloLevy It isn’t _hard_, but sure is a round about and inconvenient way 😑  
This issue has been raised quite a while back, not aware of any progress though.

---

<div class="post-metadata">

**Author:** ![jpTrujilloLevy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jptrujillolevy/32/13800_2.png) [@jpTrujilloLevy](https://forum.dynamobim.com/u/jpTrujilloLevy)\
**Post date:** [October 16, 2016, 3:21pm UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/7 "2016-10-16T15:21:14Z")

</div>

Thanks a lot @Vikram_Subbaiah .

After I set 3 decimals I can use listUniqueItem and AllIndicesOf nodes!  
Now for some reason I cannot setDiference from main list and pruned Points like I my first example! =S

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [October 17, 2016, 7:46am UTC](https://forum.dynamobim.com/t/list-and-index-repeated-items/6363/8 "2016-10-17T07:46:40Z")

</div>

> [@jpTrujilloLevy](#):
>
> I cannot setDiference from main list and pruned Points

_List A_: Round off and reconstruct your main list.  
_List B_: Prune the Reconstructed list  
Use _List A_ and _List B_ for _SetDifference_
