As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [tail-recursion]

For questions where it is important that recursion occurs as a tail call.

Filter by
Sorted by
Tagged with
8 votes
2 answers

Tar implementation

I am writing a tar implementation for education purposes and I started with reading from a tar file and printing the file content. I use recursion for getting the next tar header and googled "...
mortytheshorty's user avatar
2 votes
1 answer

What is better to use for mapping value to Map of functions: tail recursion or foreach?

I want to map functions from my functions library (Map called as chain) to input string str. ...
Gudsaf's user avatar
  • 186
1 vote
1 answer

Implementations of unzip in Racket

I've been practicing my folds and tail-call recursive programming, and I wanted to work on unzip for the general case as opposed to just pairs. This was very easy ...
BrainFRZ's user avatar
  • 819