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
- Basic Dict Usage
- Tuples
- Pattern Matching
- Tasks & Error Handling
- Import Files
- Multiple Roc Files
- JSON
- Random Numbers
- CLI Args
- Graph Traversal
- Parser
- Arithmetic
- Looping Tasks
- Least Squares
- Towers of Hanoi
- Record Builder
- Multi-line Comments
- Go Platform
- .NET Platform
- Encoding & Decoding Abilities