% bind1 - Bind arguments to a function using Matlab closure
%
% bind1 :: (A1, A2, ... -> B1, B2 ..), A1 -> (A2, ...) -> B1, B2 ...

function g=bind1(f,varargin)
	args=varargin;
	g=@(varargin)f(args{:},varargin{:});
end

