pub trait Applicative: Functor {
    fn pure(a: Self::Inner) -> Self::Wrapped<Self::Inner>;
    fn seq<F: Fn(Self::Inner) -> B, B>(
        f: F,
        fa: Self::Wrapped<Self::Inner>
    ) -> Self::Wrapped<B>; fn lift_a2<F: Fn(Self::Inner, B) -> C, B, C>(
        f: F,
        fa: Self::Wrapped<Self::Inner>,
        fb: Self::Wrapped<B>
    ) -> Self::Wrapped<C>; }
Expand description

A functor with application, providing operations to

Required Methods

Lift a value into a functor

In Haskell speak this translates to, pure :: (Functor f) => a -> f a

Run a computation inside a functor.

In Haskell speak this translates to, (<*>) :: (Functor f) => f (a -> b) -> f a -> f b

Lift a binary function into actions

lift_a2 :: (a -> b -> c) -> f a -> f b -> f c

Implementations on Foreign Types

Implementors