compiler: support removing slice elements

Go-way of removing elements from slice is via `append` builtin.
There is a separate opcode for removing elements from
Arrays, which is cheaper and supported in this commit.
This commit is contained in:
Evgenii Stratonikov 2020-09-15 10:05:41 +03:00
parent 78948ef7af
commit bcc11cbd74
4 changed files with 36 additions and 1 deletions

View file

@ -17,7 +17,7 @@ var (
goBuiltins = []string{"len", "append", "panic", "make", "copy", "recover", "delete"}
// Custom builtin utility functions.
customBuiltins = []string{
"FromAddress", "Equals",
"FromAddress", "Equals", "Remove",
"ToBool", "ToByteArray", "ToInteger",
}
)