roc/examples
2022-01-27 16:49:47 +01:00
..
benchmarks formatting 2022-01-26 20:25:31 +01:00
cli Manually format echo example to pass tests 2022-01-27 06:48:14 -07:00
effect use mainForHost generic in effect platform 2022-01-23 00:20:28 +01:00
false-interpreter Merge remote-tracking branch 'origin/trunk' into add_loop_examples 2022-01-27 16:49:47 +01:00
fib Switch to always encoding package names / paths as strings 2021-12-23 20:11:14 -08:00
hello-rust Switch to always encoding package names / paths as strings 2021-12-23 20:11:14 -08:00
hello-swift Remove accidental trailing spaces 2022-01-18 22:25:46 -07:00
hello-web Switch to always encoding package names / paths as strings 2021-12-23 20:11:14 -08:00
hello-world Remove accidental trailing spaces 2022-01-18 22:25:46 -07:00
hello-zig Remove accidental trailing spaces 2022-01-18 22:25:46 -07:00
quicksort Make sure quicksort only ever uses non-negative values 2022-01-10 21:10:35 -05:00
tui Ignore tui executable 2022-01-27 06:48:27 -07:00
.gitignore Create dummy lib as libapp.so 2021-09-15 15:16:39 -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.