Perhaps you are new to Scheme and not familiar with the syntax for invoking Scheme functions.
Given a function f
, you invoke it using:
(f arg1 arg2)
not
f (arg1 arg2)
This works for me.
(define (mapNtimes f x L)
(if (= x 0) L
(mapNtimes f (- x 1) (map f L))))