Examples
Here are some small examples of ways to do various things in Roc.
You can find the source code for all of these at github.com/roc-lang/examples
- Hello, World!
- FizzBuzz
- Pattern Matching
- Tasks & Error Handling
- JSON
- Random Numbers
- Tuples
- CLI Args
- Import Files
- Graph Traversal
- Parser
- Arithmetic
- Least Squares
- Towers of Hanoi
- Record Builder