A trap is a core with one arm named
$ and no sample. They are often used in similar ways to looping structures in other programming languages.
- Hoon School: Our guide to learning the Hoon programming language.
- Cores lesson: Trap section: A Hoon School lesson that uses traps to build recursive functions.