Skip to content

Chapter 11. Generic Functions

A function in Zig can take types as parameters.

SectionTitle
1Generic Functions
2Generic Structs
3Type Constraints by Use
4Interfaces by Convention
5Compile-Time Dispatch
6Exercises