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 01627f1 commit f2ecae7Copy full SHA for f2ecae7
src/lambda.php
@@ -73,6 +73,8 @@ function apply($f, $x)
73
// evaluate the body of the function
74
// by substituting the argument via
75
// the environment
76
+ //
77
+ // this is also known as beta reduction
78
list($_, $arg, $body, $env) = $f;
79
return evaluate($body, array_merge($env, [$arg => $x]));
80
}
0 commit comments