view general/funutils/tail_return.m @ 4:e44f49929e56

Adding reorganised general toolbox, now in several subdirectories.
author samer
date Sat, 12 Jan 2013 19:21:22 +0000
parents
children fbc0540a9208
line wrap: on
line source
% tail_return - Package return values for tail_feval
%
% tail_return :: A{1:N} -> thunk(A{1:N}).
%
% thunk(B{1:M}) ::= 
%    exists C{1:L} . cell { C{1:L}->B{1:M}, cell { C{1:L} } }
%  | cell { {0}, cell { B{1:L} } }
%  | unit -> B{1:M}.
function ret=tail_return(varargin), ret={0,varargin}; end