beard.fold_left

Members

Templates

foldLeft
template foldLeft(alias F, alias A)
template foldLeft(alias F, alias A, H, T...)

Produces F(Tn, F(.., F(T2, F(A, T1))))

foldLeft2
template foldLeft2(alias F, T...)

Like foldLeft but calls an inner template "add" on the first alias as template argument allowing the calling template to store state.

Meta