[][src]Trait funlib::FoldableB

pub trait FoldableB<B>: HKT<B> {
    fn fold_right<F>(&self, z: B, f: F) -> B
    where
        F: Fn(&Self::A, B) -> B
;
fn fold_left<F>(&self, z: B, f: F) -> B
    where
        F: Fn(B, &Self::A) -> B
; fn fold_map<F>(&self, f: F) -> B
    where
        F: Fn(&Self::A) -> B,
        B: Monoid
, { ... } }

Required methods

fn fold_right<F>(&self, z: B, f: F) -> B where
    F: Fn(&Self::A, B) -> B, 

fn fold_left<F>(&self, z: B, f: F) -> B where
    F: Fn(B, &Self::A) -> B, 

Loading content...

Provided methods

fn fold_map<F>(&self, f: F) -> B where
    F: Fn(&Self::A) -> B,
    B: Monoid

Loading content...

Implementations on Foreign Types

impl<A, B> FoldableB<B> for Vec<A>[src]

Loading content...

Implementors

Loading content...