const curry = R.curry((fns, ary) => R.ap(fns, ary)); ), R.add()]); ,,]); console.log(res); //[2, 4, 6, 4, 5, 6] const compose = R.compose( R.reverse, R.ap([R.multiply(), R.add()]) ); ,,]); console.log(res1); //[6, 5, 4, 6, 4, 2] , x)) const pipe = R.…