Add base support for invoking custom functions (arguments' evaluating is still not supported)
This commit is contained in:
@@ -12,7 +12,7 @@ class FunctionDefinitionTool {
|
||||
}
|
||||
|
||||
inner class FunctionDefinitionToolStage2(private val signature: Signature) {
|
||||
infix fun define(body: (Environment, List<Value>) -> Value) {
|
||||
infix fun body(body: (Environment, List<Value>) -> Value) {
|
||||
definitions.add(FunctionDefinition(signature, body))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user