public interface ValueFunction
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
- Value apply(Env env, List<Value> in)
env
- the environment to usein
- the input argumentsString getDescription()