Im trying to write a macro that checks a list to see if there is a procedure call, but im not quite sure how to go about it. The first thing that comes to my head is to use the procedure? function to check, but it doesnt work. An example of what im trying to do is the following:
(procedure? (car '(+ 1 2)))
now, car of that list returns +
, but the function still returns false
.
Is there a way to check whether the car of a list is a procedure or not?