added list index function
This commit is contained in:
parent
12caeedf68
commit
fcdde50faa
2 changed files with 48 additions and 0 deletions
|
|
@ -72,6 +72,15 @@ func GenFuncTable() ast.FuncTable {
|
|||
ArgLazy: true,
|
||||
},
|
||||
|
||||
"index": &ast.Function{
|
||||
Function: Index,
|
||||
Name: "index",
|
||||
Args: []ast.Token_t{
|
||||
ast.NUMBER,
|
||||
ast.LIST,
|
||||
},
|
||||
},
|
||||
|
||||
"head": &ast.Function{
|
||||
Function: Head,
|
||||
Name: "head",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue