add def implementation for lambdas
This commit is contained in:
@@ -35,7 +35,7 @@ function Lisp (input, lib) {
|
||||
return interpret(input[2], letContext)
|
||||
},
|
||||
def: function (input, context) {
|
||||
context.scope[input[1].value] = input[2].value
|
||||
context.scope[input[1].value] = interpret(input[2], context)
|
||||
return input[2]
|
||||
},
|
||||
lambda: function (input, context) {
|
||||
|
||||
Reference in New Issue
Block a user