For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /guide/tutorial/index.md.

Tutorial

This tutorial builds a small, realistic project with byenull: a profile lookup. We start from a user directory full of nullable values, and end with a pipeline that finds a user, reads their optional profile, fetches their avatar, and produces either a guaranteed value or a typed failure, with every "maybe it's not there" handled once, at the source.

Each chapter adds one piece and shows its result. The chapters follow the shape of the library, so by the end you have used every function byenull has.

Basics

What an Option is, how to create one, and how to look inside safely.

Transforming

Composing lookups into pipelines that handle absence automatically.

Resolving

Ending a pipeline: getting a value out, or crossing into Results.

New to the library? Start with Why byenull? or jump straight into the first chapter.