Skip to content

Instantly share code, notes, and snippets.

View josete89's full-sized avatar

Jose Luis josete89

  • adidas-group
  • Zaragoza
View GitHub Profile
@josete89
josete89 / gist:952c89a5f7e1eff4734421a4f7d61a39
Last active August 29, 2017 07:22
Swift 4 Continuation Monad
// Playground - noun: a place where people can play
public func id<A>(x : A) -> A {
return x
}
public func error<A>(_ x : String) -> A {
assert(false, x)
}
/// The Continuation Monad