Skip to content

Part 4. Functions

Functions are reusable blocks of code.

SectionTitle
1The Structure of a Function
2Parameter Syntax
3The return Keyword
4Returning a Struct
5A First Example
6A First Example
7What Anonymous Functions Usually Mean
8A Simple Function
9A Mental Model
10What “Exported” Means
11Zig Generics Use comptime