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