# Functions
## CS Concepts — The Codex Coding
**URL:** https://thecodex.expert/coding/concepts/functions/
**Type:** concept | **Confidence:** high | **Last verified:** 2026-06-01

## 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 — encapsulating a repeatable operation behind a single name so it can be invoked many times without repeating its implementation.

## REQUIRES
concepts/variables, concepts/control-flow

## ENABLES
concepts/scope, concepts/recursion, concepts/closures, paradigms/functional

*The Codex Coding — thecodex.expert/coding/ — Free forever — Mumbai, India*
