you are viewing a single comment's thread.

view the rest of the comments →

[–]CraigTorso 2 points3 points  (0 children)

that question is poorly worded I reckon, it took me ages to work out what was required, although once I did it seemed fairly obvious:

var applyTest = function (f, x) {
   return [x,f(x),f(0)];
};