[#470] Add `UPDATE n`
Description
This MR introduces the new UPDATE n
instruction (named pairUpdate
in Lorentz).
- allows updating the node a right-combed pair at index
n
- like
GET 0
,UPDATE 0
works even on non-pair values (and is equivalent toDIP { DROP }
)
Related issue(s)
Resolves part of #470 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Diogo Castro