view test/bug-61105/nested_test_2.m @ 31218:a33a9c87220b stable

imformats.m: Fix "isa" function in return value (bug #62974) * imformats.m (isa_magick): Fix typo "Format" to "format" for name of field in struct returned from __magick_ping__.
author Rik <rik@octave.org>
date Tue, 30 Aug 2022 15:24:29 -0700
parents 55eeb7f0850b
children
line wrap: on
line source

function r = nested_test_2 ()
  a = 3;
  b = 5;
  c = 7;
  f1 = @(f, x) f(x) + a;
  f2 = @(y) f1 (@(z) z^2 + b*y, y) + c;
  r = f2 (2);
endfunction