Skip to content

Instantly share code, notes, and snippets.


Chris Eidhof chriseidhof

View GitHub Profile
cobbal / monad.swift
Last active Apr 6, 2016
Monad protocol in swift
View monad.swift
protocol Monad {
typealias F
typealias U
class func bind<M : Monad where M.U == U>(Self, F -> M) -> M
class func `return`(F) -> Self
extension Array : Monad {
typealias F = T
You can’t perform that action at this time.