pub trait ApplyOnce<F, AB>where
Self: Functor<F, AB>,
F: HKT1<T<AB> = Self>,{
// Required method
fn apply1<A, B>(self, a: F::T<A>) -> F::T<B>
where AB: F1Once<A, Ret = B>;
}
Expand description
Apply
, but specialized to know at compile-time
that the function contained in F
will only be called one time.