Skip to main content

Agent loops

Use for ... in when each item in a collection should be processed with the same agent.

Destructuring loop bindings

Loop headers may destructure object-shaped items.

Dynamic match

Use match when a dynamic value depends on a variant result. Branches must return the same type. For variant declarations, see Data Types.
Use _ as the catch-all branch.