Content deleted Content added
→Maxima: lang="maxima" |
→Visual Prolog: fix syntaxhighlight error |
||
Line 1,438:
<code>mkAdder</code> returns an anonymous function, which has captured the argument <code>X</code> in the closure. The returned function is a function that adds <code>X</code> to its argument:
<syntaxhighlight lang="
clauses
mkAdder(X) = { (Y) = X+Y }.
|