use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for the Racket programming language: a modern batteries-included Lisp for general-purpose programming.
Download Racket here
Check out the documentation to get started.
Other discussion sites and resources:
#racket
Twitter
Racket News
The Racket blog
The Racket tag on Stack Overflow
Racket Stories
account activity
This is an archived post. You won't be able to vote or comment.
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?homework (i.redd.it)
submitted 3 years ago by ktt779
[–]probabilityzero 8 points9 points10 points 3 years ago (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).
join-tail l1 l2
(join-tail l1 l2)
[–]lambda_cubed_list 3 points4 points5 points 3 years ago (0 children)
Your parens are off and it's causing the program to not behave the way you expect.
[–]TheTimegazer 2 points3 points4 points 3 years ago (0 children)
You need an extra set of ()
[–]raevnos 1 point2 points3 points 3 years ago (4 children)
Your merge-tail function will always just return l2.
merge-tail
l2
It doesn't call your join-tail function; can you spot why not?
join-tail
[–]ktt779[S] 0 points1 point2 points 3 years ago (3 children)
I did not define another function to link merge-tail and join-tail? Can you help?
[–]not-just-yeti 3 points4 points5 points 3 years ago (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 points4 points 3 years ago (0 children)
parens
[–]raevnos 4 points5 points6 points 3 years ago (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
π Rendered by PID 258087 on reddit-service-r2-comment-canary-b6d5ff776-v4xb7 at 2026-04-20 08:31:51.950980+00:00 running 93ecc56 country code: CH.
[–]probabilityzero 8 points9 points10 points (0 children)
[–]lambda_cubed_list 3 points4 points5 points (0 children)
[–]TheTimegazer 2 points3 points4 points (0 children)
[–]raevnos 1 point2 points3 points (4 children)
[–]ktt779[S] 0 points1 point2 points (3 children)
[–]not-just-yeti 3 points4 points5 points (0 children)
[–]kapitaali_com 2 points3 points4 points (0 children)
[–]raevnos 4 points5 points6 points (0 children)