mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-14 07:29:02 +03:00
.. | ||
algorithms | ||
benchmarks | ||
breakout | ||
false-interpreter | ||
gui | ||
hello-world | ||
interactive | ||
platform-switching | ||
.gitignore | ||
README.md |
Examples
Run examples as follows:
-
Navigate to this
examples
foldercd 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.