Skip to content

Instantly share code, notes, and snippets.

@kevinrobayna
Last active August 29, 2015 14:07
Show Gist options
  • Save kevinrobayna/b0ee0bf133b80719a24d to your computer and use it in GitHub Desktop.
Save kevinrobayna/b0ee0bf133b80719a24d to your computer and use it in GitHub Desktop.
function add( x, y ) {
if ( y == 0 ) {
var g = function ( x ) {
return p ( arguments, 0 );
};
return g ( x );
}
else if ( y > 0 ) {
y --;
var h = function ( x, y, add_x_y ) {
return p ( arguments, 2 );
};
return s ( h ( x, y, add ( x, y ) ) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment