Gennadiy Rozental wrote:
> Would it correct to state that following pseudo-code properly
> reflect the essence of the appropriate algorithms:
>
> iter_fold( sequence s, state st, binary_operator op ) {
>iterator it = s.begin();
>
>while( it != s.end() )
>st = op( st, it );
r
Hi,
Would it correct to state that following pseudo-code properly reflect the
essence of the appropriate algorithms:
iter_fold( sequence s, state st, binary_operator op ) {
iterator it = s.begin();
while( it != s.end() )
st = op( st, it );
}
fold( sequence s, state st, binary_opera