Recursion and iteration

Last-Updated: 2021-09-14

Sources

Description

The mdoc documentation (details/recursion) goes through many ways to achieve recursion and iteration with the roff language. It goes through the following topics:

The self-redefining macro written by Ingo Schwarze (details/redefine_self) is another example of recursion. The macro implements an arbitrary payload and uses it to show the Fibonacci sequence.

← Go back