Trait radn::func::ApplicativeLA2

source ·
pub trait ApplicativeLA2<'a>: Functor<'a> {
    // Required method
    fn la2<A: 'a + Send, B: 'a + Send, C: 'a + Send>(
        fa: Self::F<A>,
        fb: Self::F<B>,
        f: impl 'a + Send + FnOnce(A, B) -> C
    ) -> Self::F<C>;
}
Expand description

Part of Applicative responsible for Haskell’s result combination listA2.

Required Methods§

source

fn la2<A: 'a + Send, B: 'a + Send, C: 'a + Send>( fa: Self::F<A>, fb: Self::F<B>, f: impl 'a + Send + FnOnce(A, B) -> C ) -> Self::F<C>

Equivalent of Haskell’s listA2.

Implementors§