view test/bug-61105/nested_test_3.m @ 30249:bc22395f60fa

maint: merge stable to default.
author John W. Eaton <jwe@octave.org>
date Fri, 22 Oct 2021 12:05:59 -0400
parents 55eeb7f0850b
children
line wrap: on
line source

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