some rudimentary list operations
This commit is contained in:
parent
5d538d4a0b
commit
15e294085c
2 changed files with 98 additions and 0 deletions
|
|
@ -59,6 +59,28 @@ func GenFuncTable() ast.FuncTable {
|
|||
Args: 3,
|
||||
},
|
||||
|
||||
"len": &ast.Function{
|
||||
Function: Len,
|
||||
Name: "len",
|
||||
TimesCalled: 0,
|
||||
Args: 1,
|
||||
},
|
||||
|
||||
"head": &ast.Function{
|
||||
Function: Head,
|
||||
Name: "head",
|
||||
TimesCalled: 0,
|
||||
Args: 1,
|
||||
},
|
||||
|
||||
"tail": &ast.Function{
|
||||
Function: Tail,
|
||||
Name: "tail",
|
||||
TimesCalled: 0,
|
||||
Args: 1,
|
||||
},
|
||||
|
||||
|
||||
"export": &ast.Function{
|
||||
Function: Export,
|
||||
Name: "export",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue