Skip to content

Instantly share code, notes, and snippets.

View vdeurzen's full-sized avatar

Tim van Deurzen vdeurzen

  • Eolas Engineering
  • Amsterdam
View GitHub Profile
@brotchie
brotchie / main.cpp
Created July 18, 2012 06:32
Minimal C++ implementation of Functor, Monad and Maybe using c++0x variadic templates and lambda expressions.
/*
* Minimal C++ implementation of Functor, Monad and Maybe.
*
* Requires c++0x variadic templates and lambda expressions:
*
* g++ -std=c++0x main.cpp -o main
*
* fmap, monadic bind and return implementations for std::vector
* and Maybe.
*