roc/examples
2022-03-07 19:59:29 -07:00
..
benchmarks Simplify example ignores 2022-03-07 19:59:29 -07:00
cli Make RocDecs display properly in webrepl. 2022-03-06 11:52:25 -05:00
effect Consistent-ify platform dirs 2022-03-07 19:59:29 -07:00
false-interpreter Merge pull request #2641 from rtfeldman/DecRepl 2022-03-07 16:17:06 +01:00
fib stop printing to stdout before timing completes 2022-02-21 19:19:39 -08:00
gui Make RocDecs display properly in webrepl. 2022-03-06 11:52:25 -05:00
hello-rust Make RocDecs display properly in webrepl. 2022-03-06 11:52:25 -05:00
hello-swift remove old Effect module things 2022-02-03 23:55:02 +01:00
hello-web Rename CLI --backend to --target since that's what it has always meant 2022-03-05 14:22:59 +00:00
hello-world remove old Effect module things 2022-02-03 23:55:02 +01:00
hello-zig Improve hello-zig app name 2022-03-07 19:59:29 -07:00
quicksort stop printing to stdout before timing completes 2022-02-21 19:19:39 -08:00
tui remove old Effect module things 2022-02-03 23:55:02 +01: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.