view general/funutils/@function_handle/mrdivide.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
% mrdivide - Bind one argument to a function using Matlab closure
%
% mrdivide :: 
%    (A{1:N}->B{1:L}) ~'func from N inputs to L outputs',
%    A{1}             ~'first argument'
% -> (A{2:N}->B{1:L}) ~'func from remaining arguments to returns'.

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