much stdlib docs
This commit is contained in:
parent
b941df68e1
commit
ee39de01fd
9 changed files with 228 additions and 74 deletions
|
|
@ -27,7 +27,7 @@ import (
|
|||
* retuns a sequence of elements (list contents)
|
||||
* in event a not-list is passed in, returns the arg.
|
||||
*/
|
||||
func expand(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token {
|
||||
func Expand(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token {
|
||||
if input.Tag != ast.LIST {
|
||||
log.Log(log.DEBUG, "expand called on not a list", "expand")
|
||||
return input
|
||||
|
|
@ -41,7 +41,7 @@ func expand(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token
|
|||
* Arg one is a list, next args are appended
|
||||
* if no args are a list, a list is made from all args
|
||||
*/
|
||||
func l_append(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token {
|
||||
func L_append(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token {
|
||||
src := input
|
||||
|
||||
if input.Tag != ast.LIST {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue