view test/bug-61105/nested_test_3.m @ 31232:adfbd487d0f6 stable

GitHub-CI (CodeQL): Update to CodeQL action version v2. * .github/workflows/codeql-analysis.yaml: CodeQL action version v1 is deprecated. Update to CodeQL action version v2. See: https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 19 Sep 2022 13:13:31 +0200
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