[#173] Generalize structure-manipulation indigo expressions
Description
Instead of having the current structure-specific operator/expression and Expr
constructor, we now have:
- one generic
Expr
constructor that compiles to Lorentz'supdate
- one generic "updating" operator that simply uses that constructor
- one generic "inserting" operator based on that constructor (or even better on the previous operator)
- one generic "deletion" operator too, like the one above
- one generic "empty" instruction
- one generic "lookup" instruction
Related issue(s)
Resolves #173 (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 Anton Myasnikov