mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-30 23:38:41 +00:00
| .. | ||
| algorithms | ||
| benchmarks | ||
| breakout | ||
| false-interpreter | ||
| gui | ||
| hello-world | ||
| interactive | ||
| platform-switching | ||
| .gitignore | ||
| README.md | ||
Examples
Run examples as follows:
-
Navigate to this
examplesfoldercd examples -
Run a particular example, such as Hello World:
roc run hello-world/main.roc
examples/benchmarks/ contains some larger examples.
Some examples like examples/benchmarks/NQueens.roc require input after running.
For NQueens, input 10 in the terminal and press enter.