(define function1 (lambda(val)
(if (list? val)
(function2 (val))
('!list))))
When I try the input '(t t t), I get the following error:
application: not a procedure;
expected a procedure that can be applied to arguments
given: (t t t)
arguments...: [none]
I've defined function2 and it works when I call that on its own, but I'm unable to call it within function1.