Skip to content

Instantly share code, notes, and snippets.

View jeffpeterson's full-sized avatar
🤠
Howdy!

Jeff Peterson jeffpeterson

🤠
Howdy!
View GitHub Profile
@keathley
keathley / possibly.ex
Created January 7, 2016 20:57
Monads and Maybes in elixir
defprotocol Functor do
def fmap(data, func)
end
defprotocol Applicative do
def pure(data)
def run(wrapped_func, data)
end
defprotocol Monad do