Mercurial > hg > ishara
diff general/funutils/bind1.m @ 12:fbc0540a9208
Moved some high-order functions from funutils to arrutils, updated docs and cleaned up funutils.
author | samer |
---|---|
date | Mon, 14 Jan 2013 22:21:11 +0000 |
parents | e44f49929e56 |
children |
line wrap: on
line diff
--- a/general/funutils/bind1.m Mon Jan 14 15:52:31 2013 +0000 +++ b/general/funutils/bind1.m Mon Jan 14 22:21:11 2013 +0000 @@ -1,6 +1,9 @@ % bind1 - Bind arguments to a function using Matlab closure % -% bind1 :: (A1, A2, ... -> B1, B2 ..), A1 -> (A2, ...) -> B1, B2 ... +% bind1 :: +% func(A{1}, ..., A{N}->B{1:L}) ~'func from N inputs to L outputs', +% A{1}, ..., A{M} ~'M<=N input arguments of the correct types' +% -> func(A{M+1}, ..., A{N}->B{1:L}) ~'func from remaining arguments to returns'. function g=bind1(f,varargin) args=varargin;