function h=compose(f,g)
% compose - Constructs composition of two functions
%
% compose :: (B->C), (A{1:N}->B) -> (A{1:N}->C).
%
% returns the function h such that h(...) = f(g(...))

	h=@fg;
	function x=fg(varargin), x=f(g(varargin{:})); end
end
