Iterate Arguments Pop Property

If Python is in the "iterate_args" state, then the first element in the first list of the Arguments stack is popped out. This element is the next expression to be evaluated.

if the following are true:
  • expression state at time t = "iterate_args"
  • arguments stack at time t = [ [ x, y ], z ]

then arguments stack at time (t + 1) = [ y, z ]

For example, if the following are true:

  • expression state at time 3 = "iterate_args"
  • arguments stack at time 3 = [ [ a, [ ] ], [ ] ]

then arguments stack at time (3 + 1) = [ [ ], [ ] ]

Try stepping through the simulator to see what happens to the Arguments stack.

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments