logoalt Hacker News

thomasmgtoday at 10:02 AM1 replyview on HN

You could use "local.tee". It is kind of is "store" + "duplicate".


Replies

asibahitoday at 10:11 AM

`local.tee` doesn't duplicate. it just doesn't remove the value from the stack. (so it is "just" `local.set` followed by `local.get`)

show 1 reply