> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 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.

- [Option type](/guide/tutorial/basics/option-type.md): the `Some` / `None` union and the project we will build
- [Creating Options](/guide/tutorial/basics/creating-options.md): `some`, `none`, `fn`, and `maybe`
- [Checking Options](/guide/tutorial/basics/checking-options.md): `isSome`, `isNone`, and `isOption`

## Transforming

Composing lookups into pipelines that handle absence automatically.

- [Pipe basics](/guide/tutorial/transforming/pipe-basics.md): `pipe`, the heart of the library
- [Mapping Options](/guide/tutorial/transforming/mapping-options.md): transforming values with `map`
- [Chaining Options](/guide/tutorial/transforming/chaining-options.md): sequencing lookups with `andThen`
- [Recovering Options](/guide/tutorial/transforming/recovering-options.md): fallbacks with `orElse`
- [Inspecting Options](/guide/tutorial/transforming/inspecting-options.md): side effects with `inspect` and `inspectNone`

## Resolving

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

- [Unwrapping Options](/guide/tutorial/resolving/unwrapping-options.md): extracting values with `unwrap`
- [Converting to Results](/guide/tutorial/resolving/converting-to-results.md): `toResult` and `fromResult` with @praha/byethrow

New to the library? Start with [Why byenull?](/guide/start/why.md) or jump straight into the [first chapter](/guide/tutorial/basics/option-type.md).
