comparison general/funutils/@function_handle/foldl.m @ 13:03694e5c8365

Reorganised some high order list functions to correct class-based method dispatch; fixed some docs.
author samer
date Wed, 16 Jan 2013 12:12:34 +0000
parents
children
comparison
equal deleted inserted replaced
12:fbc0540a9208 13:03694e5c8365
1 function X=foldl(fn,e,args)
2 % foldl - Fold fom the left combinator
3 %
4 % foldl :: (X,Y->X), X, cells(Y) -> X.
5 X=e; for i=1:length(args), X=fn(X,args{i}); end