Hi, I am learning Scheme. What is wrong with the code below?I want to write a program that takes the first function from the list and then applies that to a number?
    (define num  3)
    ;;I want to do something like this which returns 3
    ((λ (x) x)num)
    ;;but my functions are in a list so this should return3
    ((first '((λ (x) x) (λ (x) (* x x)))) num)
Im getting this error for the above code:
procedure application: expected procedure, given: (λ (x) x); arguments were: 3
What does it mean when I get these kinds of output?
When I dont apply anything, I get a nice output.
(first '((λ(x) x)(λ(x) (*x x))))
returns (λ (x) x)