;; Write the code to fill in the missing part (???) of the below statement)
;;(map ??? (list 1 2 3 4 5 6 7 8 9 10)) => (2 4 6 16 10 36 14 64 18 100)
;; *2 ^2 *2 ^2
(define (mapp list item)
(cond ((odd? (car item)) (* (car item) 2))
(cons ((even? (car item)) (* (car item) (car item)))
(mapp (list (cdr item))))))
(mapp (list 1 2 3 4 5 6 7 8 9 10))
Can you help me solving this problem? Thank you
error msg:
the expected number of arguments does not match the given number
expected: 2
given: 1
arguments...: