[][src]Trait rust_fp_categories::Foldable

pub trait Foldable: Sized {
    type Elm;
    pub fn fold_left<B, F>(&self, b: B, f: F) -> B
    where
        F: Fn(B, &Self::Elm) -> B
;
pub fn fold_right<B, F>(&self, b: B, f: F) -> B
    where
        F: Fn(&Self::Elm, B) -> B
; }

Associated Types

Loading content...

Required methods

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

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

Loading content...

Implementations on Foreign Types

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

type Elm = A

Loading content...

Implementors

Loading content...