Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.14 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var addOn = function(x){
  2.         return x+1;    
  3. };
  4.  
  5. var applyTest = function (f, x) {
  6.         return [x, (f(x)), (f(0))];        
  7. };
  8.  
  9. var y = applyTest(addOn, 1);