logoalt Hacker News

asibahitoday at 10:11 AM1 replyview on HN

`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`)


Replies

thomasmgtoday at 11:02 AM

Sure. But it does save you one instruction: "tee", "get" instead of "set", "get", "get".