logoalt Hacker News

dirkt • today at 12:14 PM • 0 replies • view on HN

There are examples in the tutorial, including a circular linked list.

You can just store all them items of the list/tree/whatever on the stack, growing it as needed, or you can add an addition "freelist" for a particular stack, so you can re-use items.