We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6b13ba commit e43a3d3Copy full SHA for e43a3d3
src/eval.php
@@ -37,12 +37,12 @@ function evaluate($exp, array $env = [])
37
return $env[$exp];
38
}
39
40
- // procedure 'object'
41
- // encoded as a 4-tuple of [λ, arg, body, env]
+ // closure 'object'
+ // encoded as a 4-tuple of ['closure', arg, body, env]
42
// this is what is passed to apply
43
if ('λ' === first($exp)) {
44
list($_, $arg, $body) = $exp;
45
- return ['λ', $arg, $body, $env];
+ return ['closure', $arg, $body, $env];
46
47
48
// function application
0 commit comments