function chained(functions) { //FIXME }
chained([a,b,c,d])(input)
function f1(x){ return x*2 } function f2(x){ return x+2 } function f3(x){ return Math.pow(x,2) }





Given two speeds v1 (A's speed, integer > 0) and v2 (B's speed, integer > 0) and A's lead g (integer > 0) how long will it take B to catch A? The result will be an array [hour, min, sec] which is the time needed in hours, minutes and seconds (round down to the nearest second) or a string in some languages.

race(720, 850, 70) => [0, 32, 18] or "0 32 18"