Dr. Racket user.
Here are two expressions:
((lambda(x)(+ x 1))3)
((lambda(x)(+ x 1)2)3)
The first is a lambda expression that takes one input and increases it by 1. So it takes 3 as its operand and makes (lambda(3)(+ 3 1) which is equal to 4.
The second one is very ambiguous to me since it evaluates to 2 and I can't understand the order of its evaluation. I know that it has to do something with the brackets which change the order but I can't understand how. Obviously it doesn't even sum "the 1" and "the x" just for some reason producing 2 as the output. I miss some basic understanding of the evaluation. Thanks in advance!