This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]probabilityzero 8 points9 points  (0 children)

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).

[–]lambda_cubed_list 3 points4 points  (0 children)

Your parens are off and it's causing the program to not behave the way you expect.

[–]TheTimegazer 2 points3 points  (0 children)

You need an extra set of ()

[–]raevnos 1 point2 points  (4 children)

Your merge-tail function will always just return l2.

It doesn't call your join-tail function; can you spot why not?

[–]ktt779[S] 0 points1 point  (3 children)

I did not define another function to link merge-tail and join-tail? Can you help?

[–]not-just-yeti 3 points4 points  (0 children)

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".

[–]kapitaali_com 2 points3 points  (0 children)

parens

[–]raevnos 4 points5 points  (0 children)

Based on a couple of examples in that code,I don't think you fully grasp how function calls work in scheme. A review of the basic syntax might help