Examples

Explore Roc through small, runnable examples.

Getting started

Types and functions

Collections and iteration

Error handling

Parsing and encoding

Programs and algorithms

Organizing code

Packages

Platforms

basic-cli

roc-ray


Each example’s page lists the Roc version used to validate it.

Their source comes from roc-lang/examples at baa8add.