Here is the code:
(define test1DataA '(("a" "a") ("b" "b") ("c" "c") ("d" "d") ("e" "ok")))
(define test1DataB '(("a" "aa") ("b" "bb") ("c" "cc") ("d" "dd") ("ok" "Ir OK!")))
(define manageFirstList (lambda (a b) (append a b)))
(define ff (lambda (a b) (manageFirstList (a b))))
(ff test1DataA test1DataB)
And here is the error message:
procedure application: expected procedure, given: ‘((“a” “a”) (“b”
“b”) (“c” “c”) (“d” “d”) (“e” “ok”)); arguments were: ‘((“a” “aa”)
(“b” “bb”) (“c” “cc”) (“d” “dd”) (“ok” “Ir OK!”))
How do I fix this?
Here’s your problem:
(manageFirstList(a b))))Why are there parens around
a b?aisn’t a function. If you want to applymanageFirstListtoa b, then do(manageFirstList a b).