public interface ValueFunction
List<Value>
) and returns a Value.Modifier and Type | Method and Description |
---|---|
Value |
apply(Env env,
List<Value> in)
Applies the function to the list values using the environment as context
and returns the evaluated value.
|
boolean |
checkArgs(List<Value> in)
Checks if the arguments are valid.
|
String |
getDescription()
Returns a string describing what this function does.
|
boolean checkArgs(List<Value> in)
in
- The input argumentsValue apply(Env env, List<Value> in)
env
- The environment to usein
- The input argumentsString getDescription()