CGP by Example is a practical tutorial series for learning Context-Generic Programming (CGP) in small, runnable steps.
It exists to provide a simpler on-ramp to CGP:
- example-driven chapters,
- concrete and minimal code,
- short, plain-language explanations focused on "how to do it."
Compared with existing CGP content, this series is intentionally more beginner-oriented and implementation-first. It emphasizes direct usage patterns and current idioms over deep internal mechanics or long comparative detours.
Copyright (c) Robert Jacobson.
The code in this project is released under the Apache-2.0 license.
Nontrivial code sections are derived from code and patterns from the CGP project, which is also released under the Apache-2.0 license.
This tutorial content was authored with significant assistance from LLM technologies.