Skip to content

Instantly share code, notes, and snippets.

@GeertVL-zz
Created January 21, 2011 08:56
Show Gist options
  • Save GeertVL-zz/789440 to your computer and use it in GitHub Desktop.
Save GeertVL-zz/789440 to your computer and use it in GitHub Desktop.
Object.extend(Number.prototype, (
function() {
function succ() {
return this + 1;
}
function times(iterator, context) {
$R(0, this, true).each(iterator, context);
return this;
}
// shortened to fit on this slide!
return {
succ: succ,
times: times,
};
})());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment