Desmos Wiki (Unofficial)

List Utilities

This is a list of many useful list manipulation functions. Feel free to use them in your graph; no attribution necessary!

Set Operations Between Lists #

Get a list representing the set-theoretic difference between the lists and .

Set-theoretic intersection.

Filter Undefined #

Filter any undefined values from a list. is the list you are trying to filter.

This works for both numbers and points.

Index of Element in List #

Get the index of a given element in a list .

Index of Min/Max #

Get the one-based index of the smallest or largest element of a list.

Does a List Contain some Value? #

Check to see whether a list contains a certain value. This can be used in the same way a piecewise domain restriction can be used.

This works for both numbers and points.

Repeat List N Times #

Given a list, create a list consisting of it concatenated with itself N times.

Reverse a List #

Reverse a list.

Update a Single List Item #

Here is a function that updates a single element in a list: