, , , , , .
, , .
funR = @(x, funR) [x(1) funR(x(2:end), funR)];
funR(0:5, funR)
, - . , Mathworks, . , iif, , .
% From the article linked above
iif = @(varargin) varargin{2 * find([varargin{1:2:end}], 1, 'first')}();
% Recurse as long as there is more than one element in x
funR = @(x,funR)iif(numel(x) > 1, @()[x(1), funR(x(2:end), funR)], ...
true, x);
funR(0:5, funR)
, , , . , , .