[][src]Trait rust_fp_categories::foldable::Foldable

pub trait Foldable<A>: HKT<A> + Sized {
    pub fn fold_left<F>(&self, b: A, f: F) -> A
    where
        F: Fn(A, &Self::C) -> A
;
pub fn fold_right<F>(&self, b: A, f: F) -> A
    where
        F: Fn(&Self::C, A) -> A
; }

Required methods

pub fn fold_left<F>(&self, b: A, f: F) -> A where
    F: Fn(A, &Self::C) -> A, 
[src]

pub fn fold_right<F>(&self, b: A, f: F) -> A where
    F: Fn(&Self::C, A) -> A, 
[src]

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

Loading content...