higher 0.2.0

Functors, Applicatives, Monads and other bad ideas
Documentation
1
2
3
4
5
6
7
/// A `Contravariant` functor.
pub trait Contravariant<'a, A> {
    type Target<B>;
    fn contramap<B, F>(self, f: F) -> Self::Target<B>
    where
        F: Fn(B) -> A + 'a;
}