roc/examples
2022-05-19 09:26:04 +01:00
..
algorithms formatter: support removing blank lines between all when branches in when expressions 2022-05-19 09:26:04 +01:00
benchmarks formatter: support removing blank lines between all when branches in when expressions 2022-05-19 09:26:04 +01:00
breakout formatter: support removing blank lines between all when branches in when expressions 2022-05-19 09:26:04 +01:00
false-interpreter formatter: support removing blank lines between all when branches in when expressions 2022-05-19 09:26:04 +01:00
gui formatter: support removing blank lines between all when branches in when expressions 2022-05-19 09:26:04 +01:00
hello-world cargo fix --edition 2022-05-16 17:04:17 +02:00
interactive formatter: support removing blank lines between all when branches in when expressions 2022-05-19 09:26:04 +01:00
.gitignore Simplify example ignores 2022-03-07 19:59:29 -07:00
README.md Rename hello examples from snake_case to camelCase for consistency 2022-03-07 21:10:19 -07:00

Examples

Took a look around in this folder; examples/benchmarks/ contains some larger examples.

Run examples as follows:

  1. Navigate to the examples directory

    cd examples
    
  2. Run "Hello, World!" example

    cargo run hello-world/helloWorld.roc
    

Some examples like examples/benchmarks/NQueens.roc require input after running. For NQueens, input 10 in the terminal and press enter.