I have problem with my cs homework.
I need to access the x value of the function, but my codes is returning me an empty function instead of with the values
I have googled all the currying and closures, but none of them are advanced enough to help me solve my problem
const pair = (x, y) => f => f(x, y); // Do not edit this function
const head = p => //Answer here
console.log(head(pair(1,2))) // Do not edit this
my console keeps returning me functions instead when I try all the combinations
function(a,b){return a;}