Trait higher::Apply

source ·
pub trait Apply<'a, A>: Functor<'a, A> {
    type Target<T>
        T: 'a,
        A: 'a
; fn apply<B>(
        f: <Self as Apply<'a, A>>::Target<ApplyFn<'a, A, B>>
    ) -> <Self as Apply<'a, A>>::Target<B>
        B: 'a
; }
Expand description

Apply takes an F<Fn(A) -> B> (or, rather, an F<ApplyFn<'a,A, B>> specifically) and applies it to an F<A> to produce an F<B>.

Required Associated Types§

Required Methods§

Implementations on Foreign Types§