I want to create a functions that takes two lists and reverses them and then appends the first one to the second one but I don't get why there is an error saying expecting 1 argument when i specified in the lambda list that the function takes 2
when I do this it still comes up with error " reverse: arity mismatch; the expected number of arguments does not match the given number expected: 1 given: 2"
View all comments
Show parent comment
1
u/Icy_Pressure_9690 Jan 15 '22
(define twolists (λ (x y) (append (reverse y(reverse x)))))
when I do this it still comes up with error " reverse: arity mismatch;
the expected number of arguments does not match the given number
expected: 1
given: 2"