Iterate Arguments Expression Property

If Python is in the "iterate_args" state, then the current expression is set to the first argument in the parameter stack.

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

then the expression at time (t + 1) = x

For example, if the following are true:

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

then the expression at time (3 + 1) = 5

Try stepping through the simulator to see the argument in the Arguments stack move to Expression.

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments