view general/funutils/@function_handle/rdivide.m @ 40:62304c930111

Reversed order of * function composition to match arrow * combinator.
author samer
date Tue, 29 Jan 2013 17:04:40 +0000
parents c388f1c70669
children 79632e7bcb52
line wrap: on
line source
% rdivide - Bind arguments to a function using Matlab closure
%
% rdivide :: 
%    (A{1:N}=>B{:})
%    A{1}, ..., A{M}                 ~'M<=N input arguments of the correct types'
% -> (A{M+1:N}=>B{:}).

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