Functions | |
elseif(nargin==1||nargin==nargout) varargout(1 else | error ("deal: nargin > 1 and nargin != nargout") |
!assert (a, 1) | |
!assert (b, 2) | |
!assert (b, 1) | |
Variables | |
function [varargout] | |
endif endfunction | !test [a, b] = deal(1,2) |
!assert | ( | b | , | |
1 | ||||
) |
!assert | ( | b | , | |
2 | ||||
) |
!assert | ( | a | , | |
1 | ||||
) |
!test[a, b] = deal(1,2) |
function[varargout] |
Initial value:
deal (varargin) if (nargin == 0) print_usage ()