roc/examples
2022-05-10 12:12:26 -04:00
..
algorithms Merge remote-tracking branch 'origin/update_zig_09' into update_zig_09 2022-04-08 13:08:04 +02:00
benchmarks roc format 2022-05-10 12:12:26 -04:00
breakout feat(formatter): implement outdent formatting for multiline lists and records 2022-04-24 16:52:02 +01:00
false-interpreter Improve false interpreter missing CLI arg message 2022-05-06 17:13:03 -04:00
gui feat(formatter): implement outdent formatting for multiline lists and records 2022-04-24 16:52:02 +01:00
hello-world fix helloZig 2022-04-08 10:05:18 +02:00
interactive Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-07 19:38:04 +02: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.