 Problem

# Generic Function Curryingself.__wrap_balancer=(t,e,n)=>{n=n||document.querySelector(`[data-br="\${t}"]`);let o=n.parentElement,r=E=>n.style.maxWidth=E+"px";n.style.maxWidth="";let i=o.clientWidth,s=o.clientHeight,c=i/2,u=i,d;if(i){for(;c+1<u;)d=~~((c+u)/2),r(d),o.clientHeight==s?u=d:c=d;r(u*e+i*(1-e))}};self.__wrap_balancer(":Rhd9j6:",1)

This `curryFunction` function takes a value and returns a function that returns another function, eventually resulting in an object:

The function currently only infers the type of the first function being passed:

## Transcript

0:00 In this problem, we have a function called curryFunction. What this does is it basically takes...You pass in the first value, which returns a function, which returns another function, which returns another function, and you eventually end up with a result that looks like this object.

0:19 You basically call this first function, which returns another function which you call, which then returns another function which you call. This is classic function currying.

0:28 What we've got here is we have a result where it looks like only the first one of this is being inferred. If I change this to a string, for instance, then here, yeah, it's only inferring string but it's not inferring number for any of the others there.

0:46 If we look at this structure here, we can see that we have this T, U, V, and all of these type arguments are on the first function here. Your job is to try to get the inference working so that we have this number being inferred here, number being inferred there, and number being inferred there.

1:05 Good luck. 