GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

next previous is undefined behaviour

Open guigui0246 opened this issue 1 year ago • 0 comments

I think you should be able to do

const var x = 0
x += 1
// x == 1
x += 1
// x == 2
addEventListener("click", () => x++)
print(await next next previous previous previous x)!

and get the output

1

guigui0246 avatar Jul 04 '24 13:07 guigui0246