You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In whatwg/html#8199 I'm creating a stack as defined in infra here: https://infra.spec.whatwg.org/#stack
However, infra says that you must not use for each and instead use while and pop for iterating. If I must use while and pop to iterate over a stack, that means I have to pop everything off of the stack and then rebuild it in order to get it back to the way it was...? I just want to iterate over the stack without modifying it. Is that possible?
The text was updated successfully, but these errors were encountered:
It sounds like you're inspecting values that are not at the top of the stack. In that case, it's not really a stack, it's just a list. So you should use the list type?
In whatwg/html#8199 I'm creating a stack as defined in infra here: https://infra.spec.whatwg.org/#stack
However, infra says that you must not use for each and instead use while and pop for iterating. If I must use while and pop to iterate over a stack, that means I have to pop everything off of the stack and then rebuild it in order to get it back to the way it was...? I just want to iterate over the stack without modifying it. Is that possible?
The text was updated successfully, but these errors were encountered: