I saw many examples of flaws taking two numbers as arguments, and I was told to pass two numbers as arguments to the minuses in the laboratory, but whenever I do this, I get the following error:
> (cons 1 2)
cons: second argument must be a list, but received 1 and 2
If I do the following, I get the same error:
> (cons '1 '2)
cons: second argument must be a list, but received 1 and 2
I am very new to Scheme and I do not understand why this is happening.
source
share