roc/examples
2022-03-07 20:10:50 -07:00
..
algorithms Consolidate algorithm examples into one dir 2022-03-07 20:10:50 -07:00
benchmarks Simplify example platform names 2022-03-07 19:59:29 -07:00
cli Simplify example platform names 2022-03-07 19:59:29 -07:00
effect Simplify example platform names 2022-03-07 19:59:29 -07:00
false-interpreter Simplify example platform names 2022-03-07 19:59:29 -07:00
gui Simplify example platform names 2022-03-07 19:59:29 -07:00
hello-world Add helpful bash scripts 2022-03-07 20:10:48 -07:00
tui Simplify example platform names 2022-03-07 19:59:29 -07:00
.gitignore Simplify example ignores 2022-03-07 19:59:29 -07:00
README.md Update docs to remove references to roc run 2021-08-05 23:15:00 -04:00

Examples

Took a look around in the examples folder, examples/benchmarks contains some larger examples.

Run examples as follows:

  1. Navigate to /examples
  2. Run with:
cargo run hello-world/Hello.roc

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