annotate general/funutils/@function_handle/foldl.m @ 40:62304c930111

Reversed order of * function composition to match arrow * combinator.
author samer
date Tue, 29 Jan 2013 17:04:40 +0000
parents 03694e5c8365
children
rev   line source
samer@13 1 function X=foldl(fn,e,args)
samer@13 2 % foldl - Fold fom the left combinator
samer@13 3 %
samer@13 4 % foldl :: (X,Y->X), X, cells(Y) -> X.
samer@13 5 X=e; for i=1:length(args), X=fn(X,args{i}); end