Skip to content

Instantly share code, notes, and snippets.

@kentaromiura
Last active December 11, 2015 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kentaromiura/4531883 to your computer and use it in GitHub Desktop.
Save kentaromiura/4531883 to your computer and use it in GitHub Desktop.
Monad.js
(function(a){var b={},c=function(d){var e=b[d];if(!e){e=b[d]={};var f=e.exports={};a[d].call(f,c,e,f,window)}return e.exports};window.Monad=c("0")})({0:function(a,b,c,d){function e(a){if(a instanceof e)return a;this.value=function(){return a}}e.prototype.bind=function(a){var b=this.value();return a===e||b===null||b===undefined?this:typeof a=="function"?new e(a(b)):this},b.exports=e}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment