I know we can’t actually implement Monad in Swift yet, but swiftz’s bind instance for Optional’s still convenient: github.com/maxpow4h/swiftz
Conversation
Monad is implementable. It just takes 12 seconds to compile and need a little typealias magic: gist.github.com/cobbal/7562875
2
4
Replying to
Ah, interesting. Instances could break this by misdefining U, which scares me, but better than nothing! Thanks.

