Language Reference

⚠️ NOTE: This reference describes Roc's current development version. Features and behavior may change before 0.1.0. Known limitations are noted in the relevant sections. If you'd like to contribute to this (other than minor corrections of obvious mistakes), definitely mention it in the langref Zulip channel before getting started on anything!

This is Roc's language reference (or langref for short).

If you're looking for a beginner tutorial, check out roc-lang.org/tutorial instead; the langref is a detailed reference intended for experienced Roc programmers.

Outline

Basics

Control flow

Types

Collections

Program structure

Advanced