Empty a list to start over

Is there a way to empty a list? I’m collecting stats of questions students got right vs how many answered. I want the student to be able to reset their stats if they want. Is there a way to empty the list and basially start over?

In a graph, it’s easy! If the list is called L, you would use an action like L -> [] and boom, L is empty again.

If you are talking about CL, it’s a bit trickier. You can’t really reset a list, but you can change the starting index of the list to essentially ignore everything that came before that point, which is kind of like resetting. Here’s an example to illustrate what I mean.

1 Like

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