To make a comment in response:
In the first case, the function knows that it needs to pass x to t . He searches for x in his lexical domain and finds x=1 . In the second case, you pass x=0 from the global environment, so it no longer searches for it in the lexical domain and passes it directly to t .
source share