# Finding a list of numbers in a list

**URL:** <https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475>\
**Category:** Questions\
**Created:** [January 2, 2026, 9:20pm UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475 "2026-01-02T21:20:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![User\_Named](https://avatars.discourse-cdn.com/v4/letter/u/77aa72/32.png) [@User\_Named](https://cl.desmos.com/u/User_Named)\
**Post date:** [January 2, 2026, 9:20pm UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475/1 "2026-01-02T21:20:28Z")

</div>

I am confused on how I could find a list of numbers in another list of numbers. I think I explain it better in the [link](https://www.desmos.com/calculator/pp4b9mmk6w). [Lists Help | Desmos](https://www.desmos.com/calculator/pp4b9mmk6w)

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [January 3, 2026, 10:43am UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475/2 "2026-01-03T10:43:08Z")

</div>

Is this what you are looking for?  
[https://www.desmos.com/calculator/ccucrvap3d](https://www.desmos.com/calculator/ccucrvap3d)

In the graph there is a function that finds the indices of all the occurrences of the elements of M in the list L.

---

<div class="post-metadata">

**Author:** ![NTMDev](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/ntmdev/32/7141_2.png) [@NTMDev](https://cl.desmos.com/u/NTMDev)\
**Post date:** [January 5, 2026, 2:15pm UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475/3 "2026-01-05T14:15:02Z")

</div>

I think maybe he wants to filter a list based on some function, like `floor`. Not sure how to do this. Can you not just do `floor([1.1,2.1,3.1])`?

---

<div class="post-metadata">

**Author:** ![User\_Named](https://avatars.discourse-cdn.com/v4/letter/u/77aa72/32.png) [@User\_Named](https://cl.desmos.com/u/User_Named)\
**Post date:** [January 5, 2026, 4:39pm UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475/4 "2026-01-05T16:39:55Z")

</div>

What I was trying to say was how could I _remove_ one list from another list.

I was also trying to translate a list into a list of colors [(kind of like this)](https://www.desmos.com/calculator/3djcyakfdb), but I think I could figure it out myself.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [January 5, 2026, 4:59pm UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475/5 "2026-01-05T16:59:58Z")

</div>

[https://www.desmos.com/calculator/her8vr6qle](https://www.desmos.com/calculator/her8vr6qle)

r\_removeFromL(L, M) removes all elements of M from L

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [January 5, 2026, 5:39pm UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475/6 "2026-01-05T17:39:10Z")

</div>

to convert a list of of numbers into a list of colors you can just use those numbers as indices of your list of colors … (if they are in right range …) :  
[https://www.desmos.com/calculator/zzdzaxjkct](https://www.desmos.com/calculator/zzdzaxjkct)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f5bd144684474e9a2f333002cde9840e52c5dbd3.png) [@system](https://cl.desmos.com/u/system)\
**Post date:** [January 7, 2026, 5:39pm UTC](https://cl.desmos.com/t/finding-a-list-of-numbers-in-a-list/8475/7 "2026-01-07T17:39:21Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
