2015-08-23 js-design-monads 12345678910function Identity(value) { this.value = value;}Identity.prototype.bind = function(transform) { return transform(this.value);};Identity.prototype.toString = function() { return 'Identity(' + this.value + ')'; 参考JavaScriptのモナドhttp://postd.cc/monads-in-javascript/
Comments