3 ms·
`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`)
by asibahi 6mo ago
`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`)
- thomasmg 6mo agoSure. But it does save you one instruction: "tee", "get" instead of "set", "get", "get".