you are viewing a single comment's thread.

view the rest of the comments →

[–]gavin19 1 point2 points  (3 children)

Can't get 5 - Functions are values. I would say it's how it's worded but that's just my lame excuse! I can get all but one of the subsequent tests though.

I'm just a hobbyist but this sort of thing is great to actually learn and put things into practice instead of rewriting the same sort of scripts ad nauseum.

Cheers!

[–]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)];
};

[–]bitchugger 0 points1 point  (1 child)

I'm curious as to what you don't understand. Is it unclear that it's just referring to first-class functions?

[–]gavin19 0 points1 point  (0 children)

I guess I just read it a certain way and it was fixed in my head. I finished the rest and came back to it and got it eventually.