{
  "schema_version": "1.0",
  "codex": "thecodex.expert/coding",
  "type": "concept",
  "slug": "concepts/functions",
  "name": "Functions",
  "section": "CS Concepts",
  "canonical_definition": "A function is a named, reusable block of code that accepts zero or more inputs (parameters), performs a defined computation, and optionally returns a value \u2014 encapsulating a repeatable operation behind a single name so it can be invoked many times without repeating its implementation.",
  "confidence": "high",
  "last_verified": "2026-06-01",
  "source_count": 4,
  "url": "https://thecodex.expert/coding/concepts/functions/",
  "concept_relationship": {
    "requires_first": [
      "concepts/variables",
      "concepts/control-flow"
    ],
    "enables": [
      "concepts/scope",
      "concepts/recursion",
      "concepts/closures",
      "paradigms/functional"
    ],
    "commonly_confused_with": [
      "parameter vs argument",
      "lambda vs def",
      "return None vs void"
    ]
  }
}