Advertisement
tinyevil

Untitled

Mar 3rd, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. template< template<class> class M >
  2. class Monad{
  3. public:
  4. template<class A>
  5. virtual M<A> Return(A a) = 0;
  6.  
  7. template<class A, class B>
  8. virtual M<B> Bind(A a, std::function<M<B>(A)> f);
  9. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement