view test/bug-61105/nested_test_3.m @ 31202:434b5a1b9498

isequal.m: Add ability to compare Java objects (bug #62930) * isequal.m: Add elseif clause to detect Java objects and use built-in Java "equals" method for comparison. Add BIST test for Java object comparison.
author Rik <rik@octave.org>
date Thu, 25 Aug 2022 15:35:25 -0700
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