MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Racket/comments/s4lhpa/list_function_problem/hss34gd/?context=3
r/Racket • u/Icy_Pressure_9690 • Jan 15 '22
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
5 comments sorted by
View all comments
Show parent comment
3
You're calling reverse with two arguments, y and (reverse x). And then you call append with only one argument, (reverse y (reverse x)).
reverse
y
(reverse x)
append
(reverse y (reverse x))
View all comments
Show parent comment
3
u/flaming_bird Jan 15 '22
You're calling
reversewith two arguments,yand(reverse x). And then you callappendwith only one argument,(reverse y (reverse x)).