Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
asibahi
· 7mo ago · 0 comments
`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`)
Comments
[–]
thomasmg
7mo ago
Sure. But it does save you one instruction: "tee", "get" instead of "set", "get", "get".