Mercurial > octave
view test/nest/no_closure.m @ 31090:1779a64b2510
maint: Merge stable to default
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Fri, 10 Jun 2022 18:57:17 -0400 |
parents | fc4bb4bd1d5e |
children |
line wrap: on
line source
## no_closure.m function r = no_closure (n) if (ischar (n)) r = nested (n); else if (n == 0) r = @no_closure; elseif (n == 1) r = @nested; endif endif function r = nested (x) if (nargin == 1) r = ["nested ", x]; else r = "nested"; endif endfunction endfunction