Skip to content

Instantly share code, notes, and snippets.

View TimoKramer's full-sized avatar

Timo Kramer TimoKramer

View GitHub Profile
@TimoKramer
TimoKramer / monads.py
Created April 19, 2020 19:33 — forked from lispyclouds/monads.py
Monads: Simple made Easy.
from functools import reduce
class Maybe(object):
def __str__(self):
return "Maybe"
class Something(Maybe):
def __init__(self, value):