Trait grabbag::iter::FoldrIterator [] [src]

pub trait FoldrIterator<E>: DoubleEndedIterator + Iterator<Item=E> + Sized {
    fn foldr<F: FnMut(E, E) -> E>(self, f: F) -> Option<E> { ... }
}

( ..., an-2, an-1, an, ), ⊗ → ... ⊗ (an-2 ⊗ (an-1 ⊗ (an)))

Provided Methods

fn foldr<F: FnMut(E, E) -> E>(self, f: F) -> Option<E>

Folds the elements of the iterator together, from right to left, using f.

Returns None if the iterator is empty.

Implementors