pub trait ApplicativeTuple<'a>: Functor<'a> {
    // Required method
    fn tuple<A: 'a + Send, B: 'a + Send>(
        fab: (Self::F<A>, Self::F<B>)
    ) -> Self::F<(A, B)>;
}
Expand description

Part of Applicative responsible for Rust-style result combination, specifically for tuples.

Required Methods§

source

fn tuple<A: 'a + Send, B: 'a + Send>( fab: (Self::F<A>, Self::F<B>) ) -> Self::F<(A, B)>

Similar to Haskell’s listA2 but with Iterator::collect-ish semantics.

Implementors§