Skip to content

Commit e43a3d3

Browse files
committed
replace closure representation to use the actual word closure
1 parent a6b13ba commit e43a3d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/eval.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ function evaluate($exp, array $env = [])
3737
return $env[$exp];
3838
}
3939

40-
// procedure 'object'
41-
// encoded as a 4-tuple of [λ, arg, body, env]
40+
// closure 'object'
41+
// encoded as a 4-tuple of ['closure', arg, body, env]
4242
// this is what is passed to apply
4343
if ('λ' === first($exp)) {
4444
list($_, $arg, $body) = $exp;
45-
return ['λ', $arg, $body, $env];
45+
return ['closure', $arg, $body, $env];
4646
}
4747

4848
// function application

0 commit comments

Comments
 (0)