Learn yamoon by reading it.
Small, complete .hyml files covering the language. To compile any of these for real and see the generated Hoon, open the playground.
Functions
A function declares its input, its output, and the expression it returns.
Generics
New in 1.0.3: type_args declares polymorphic parameters. The compiler infers T at each call and enforces it.
Native bindings & raw Hoon
Import existing Hoon libraries, describe them with native:, and drop to raw Hoon with hoon: when you need it.
Records & unions
Group fields into a record, or list alternatives with a union and pull them apart with match.
Lists, maps & sets
Collections are functions that map to Hoon's list, by, and in engines.
Macros
Define a shape once and call it like a function. It expands before Hoon is generated.
Scenario tests
New in 1.0.3: drive a Gall agent through a journey of pokes and waits; yamoon threads the state and checks it.
A Gall agent
Set target: gall to unlock agent state, pokes, and scries.