(define (head a) (car a))
(define (tail a) (cdr a))
(define (my-map f args) (if (null? (tail args)) (f (head args)) ((f (head args)) (my-map f (tail args)))))
Hi! When I enter my-map definition, no error happens, but when I call it like this: (my-map some-function-here '(1 2 3)) it fails with Error: Illigal function error. I don’t get what’s the problem here, error tells nothing about what went wrong.