discard1st :: f a -> f b -> f b
More...
#include <monad.hpp>
|
template<class Ma , class Mb > |
constexpr auto | operator() (Ma &&ma, Mb &&mb) const noexcept(noexcept(mpc::bind(std::forward< Ma >(ma), constant % std::forward< Mb >(mb)))) -> decltype(mpc::bind(std::forward< Ma >(ma), constant % std::forward< Mb >(mb))) |
|
discard1st :: f a -> f b -> f b
(*>) in Haskell
constexpr partial< detail::bind_op > bind
bind :: forall a b. m a -> (a -> m b) -> m b
Definition: monad.hpp:45
constexpr partial< detail::constant_op > constant
Returns a unary function always returning the first input.
Definition: constant.hpp:21
constexpr partial< detail::discard1st_op > discard1st
discard1st :: f a -> f b -> f b
Definition: monad.hpp:109
The documentation for this struct was generated from the following file: