view test/nest/script_nest.m @ 31246:43a6be589387

doc: New documentation for memoization techniques (bug #60860) vectorize.texi: New section on memoization octave.texi: List new section
author Arun Giridhar <arungiridhar@gmail.com>
date Thu, 29 Sep 2022 20:31:52 -0400
parents fc4bb4bd1d5e
children
line wrap: on
line source

## script_nest.m
function x = script_nest
  A (5)
  function A (n)
    if (n <= 0)
      script_nest_script;
    else
      A (n - 1);
    endif
  endfunction
endfunction