Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template< template<class> class M >
- class Monad{
- public:
- template<class A>
- virtual M<A> Return(A a) = 0;
- template<class A, class B>
- virtual M<B> Bind(A a, std::function<M<B>(A)> f);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement