Skip to content

Commit

Permalink
Merge pull request #2 from fjogeleit/append-default-functions
Browse files Browse the repository at this point in the history
feat: append default functions to function caller
  • Loading branch information
fjogeleit authored Aug 7, 2024
2 parents 45cb222 + d929388 commit b3b0bba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/interpreter/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type functionCaller struct {

func NewFunctionCaller(funcs ...functions.FunctionEntry) *functionCaller {
fTable := map[string]functionEntry{}

funcs = append(functions.GetDefaultFunctions(), funcs...)
for _, f := range funcs {
fTable[f.Name] = functionEntry{
arguments: f.Arguments,
Expand Down

0 comments on commit b3b0bba

Please sign in to comment.