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

local function

A method declared inside another method.

A local function is a method nested in another member's body, visible only there; it can capture the enclosing method's locals.

Examples

  • string Line(string label, decimal amount) => $"{label}: {amount}"; written inside PrintReceipt can be called only from PrintReceipt.

Read the full section →