mpc
Haskell-like feature supports in C++
|
state :: (s -> (a, s)) -> m a More...
#include <class.hpp>
Public Member Functions | |
template<class Fn > | |
constexpr auto | operator() (Fn &&fn) const noexcept(noexcept(monad_state_traits< std::remove_cvref_t< ST > >::state(std::forward< Fn >(fn)))) -> decltype(monad_state_traits< std::remove_cvref_t< ST > >::state(std::forward< Fn >(fn))) |
state :: (s -> (a, s)) -> m a