Skip to content

Instantly share code, notes, and snippets.

@devboy
Created November 25, 2011 20:50
Show Gist options
  • Save devboy/1394390 to your computer and use it in GitHub Desktop.
Save devboy/1394390 to your computer and use it in GitHub Desktop.
function add( x: Float, y: Float ) {
return x + y;
}
var addOne = callback( add, 1 );
addOne( 5 ); // returns 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment