mpc
Haskell-like feature supports in C++
mpc::functor Concept Reference

Requires fmap and replace2nd is valid in functor_traits . More...

#include <functor.hpp>

Concept definition

template<class F>
concept mpc::functor = requires {
}
Requires fmap and replace2nd is valid in functor_traits .
Definition: functor.hpp:18
constexpr partial< detail::fmap_op > fmap
fmap :: (a -> b) -> f a -> f b
Definition: functor.hpp:50
constexpr auto replace2nd
replace2nd :: a -> f b -> f a
Definition: functor.hpp:65
class Functor f where
Definition: functor.hpp:14

Detailed Description

Requires fmap and replace2nd is valid in functor_traits .