Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

pattern

A test a value can match, like > 10 or "quit".

A pattern describes a shape or condition a value can be tested against in is expressions, switch statements, and switch expressions; later chapters cover every pattern kind.

Examples

  • input is "quit" or "exit" and score is >= 90 both test a value against a pattern.

Read the full section →