Higher-order function: Difference between revisions

Content deleted Content added
Scheme: Changed argument of example to 7, added comment with answer
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 520:
<syntaxhighlight lang="matlab">
function result = twice(f)
result = @inner(x) f(f(x));
 
function val = inner(x)
val = f(f(x));
end
end