view general/funutils/@function_handle/foldl.m @ 39:c388f1c70669

Updated documentation and fixed some bugs in function algebra
author samer
date Tue, 29 Jan 2013 17:02:00 +0000
parents 03694e5c8365
children
line wrap: on
line source
function X=foldl(fn,e,args)
% foldl - Fold fom the left combinator 
%
% foldl :: (X,Y->X), X, cells(Y) -> X.
X=e; for i=1:length(args), X=fn(X,args{i}); end