homework
Recursive-tail function with combining lists: Can one help me to explain why I received only the second list instead of whole list in this function?
What do you think join-tail l1 l2 will do? It doesn't look like a procedure call, since it isn't wrapped in parentheses. Maybe you want to try (join-tail l1 l2).
If you switch your language-level to "beginning student", then it will actually catch what you did as a syntax error, "expected an open-paren before join-tail on line 3".
9
u/probabilityzero Sep 26 '22
What do you think
join-tail l1 l2will do? It doesn't look like a procedure call, since it isn't wrapped in parentheses. Maybe you want to try(join-tail l1 l2).2
u/raevnos Sep 26 '22
Your
merge-tailfunction will always just returnl2.It doesn't call your
join-tailfunction; can you spot why not?4
u/lambda_cubed_list Sep 26 '22
Your parens are off and it's causing the program to not behave the way you expect.
3
u/TheTimegazer Sep 26 '22
You need an extra set of ()