first time, it capture the fucntion f; second time, it capture the value x, and apply the function to x