github.com/elves/elvish@v0.15.0/pkg/eval/callable.go (about)

     1  package eval
     2  
     3  // Callable wraps the Call method.
     4  type Callable interface {
     5  	// Call calls the receiver in a Frame with arguments and options.
     6  	Call(fm *Frame, args []interface{}, opts map[string]interface{}) error
     7  }
     8  
     9  var (
    10  	// NoArgs is an empty argument list. It can be used as an argument to Call.
    11  	NoArgs = []interface{}{}
    12  	// NoOpts is an empty option map. It can be used as an argument to Call.
    13  	NoOpts = map[string]interface{}{}
    14  )