Skip to content

Instantly share code, notes, and snippets.

View robn's full-sized avatar
πŸ€–
π™΄πš…π™΄πšπšˆ πšƒπ™Έπ™Όπ™΄ π™Έπš‚ π™²π™Ύπ™Όπ™Ώπš„πšƒπ™΄πš πšƒπ™Έπ™Όπ™΄

Rob Norris robn

πŸ€–
π™΄πš…π™΄πšπšˆ πšƒπ™Έπ™Όπ™΄ π™Έπš‚ π™²π™Ύπ™Όπ™Ώπš„πšƒπ™΄πš πšƒπ™Έπ™Όπ™΄
View GitHub Profile
@pskupinski
pskupinski / C++0x_Maybe_Monad.cpp
Created March 13, 2011 04:57
My maybe monad implementation in C++0x.
// This code is in the public domain, feel free to use it in anyway you'd
// like to.
#include <iostream>
#include <functional>
using namespace std;
template<class A>
class Maybe {
protected:
A a;