How to specify a list, which's last element is referring to the first element?
By specify I mean, for example, how to write a setq
statement with this list.
I have seen this in the documentation, but I can't find it anymore. Here some pointers:
- You could loop over the elements of the list forever, but it uses only about as much memory as it has real elements.
- Its
cdr
points to itscar
. - You could call it a ring list, but I do not mean stuff from the
ring
package. - It is something basic.
I do not have a use in mind, it's just for learning and experimenting.