Skip to content

Instantly share code, notes, and snippets.

@fredrick fredrick/drive.js

Created Feb 11, 2012
Embed
What would you like to do?
Prototype monads/currying
function In(drive) {
this.drive = drive;
}
function Within(path) {
this.path = path;
}
In.prototype.within = function(path) {
var within = new Within(path);
within.drive = this.drive;
return within;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.