<aside> 💡 Lists - an abstract data type that represents an ordered collection of values, where the same value can occur more than once.

</aside>

To imagine a list and the operations performed on it, we can compare this list to a queue of people and a vendor who needs to sell balls to people in this queue. The queue is a list, just like the set of balls, and the vendor is the operator who performs this job.

A queue

A queue

  1. The first example is when we have 8 people and 8 balls - the result is that each person receives one ball.

  1. Next, let's imagine that there are 5 people and 8 balls, then the first 4 people will receive one ball each, and the last 3 people will not receive any. These are the peculiarities of working with lists that we will further discuss.

  1. And the last case is when there are 8 people and only 5 balls - the result will be that the last 4 people will have to share one ball among them.

<aside> 💡 This behavior may seem strange to you now, but later when we consider a few examples, it will become clearer.

</aside>

Creating Lists

Create a Point node and then right-click on it and select "Set one Point" after clicking anywhere in the Rhino window.

<aside> 📌 To create a node using a name, for example, Point, double-click in the Grasshopper window and type the name of the node you are looking for:

</aside>

We have a node with one point created (this is how it will appear in the Rhino window)

We want it to become the center of a circle - we can do this by connecting the Circle node

But usually, working with just one point is not enough, and we can certainly do it this way 😅 and it will work, but we can do better!