Examples

Here are some small examples of ways to do various things in Roc.

NOTE: These examples use Roc alpha4 (stable Rust compiler). Some of the syntax is deprecated and will not work with the new Zig compiler. If you would like to experiment with the unstable Zig compiler, you can try this guide.

You can find the source code for all of these at github.com/roc-lang/examples

External examples