roc/examples
2021-11-26 23:16:47 +01:00
..
benchmarks Merge remote-tracking branch 'origin/trunk' into remove-call-result-again 2021-10-22 12:57:36 +02:00
cli Delete binary that was accidentally checked in 2021-11-19 08:52:45 -05:00
effect remove another instance of RocCallResult 2021-10-22 12:26:04 +02:00
false-interpreter Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00
fib Merge branch 'trunk' into integrate-linker 2021-09-23 21:12:40 -07:00
hello-rust Delete executable that was accidentally checked in 2021-11-19 09:06:55 -05:00
hello-swift Ensure we return 0 in main 2021-11-03 19:45:43 +01:00
hello-web swap argument order 2021-11-26 23:16:47 +01:00
hello-world swap argument order 2021-11-26 23:16:47 +01:00
hello-zig update hello zig platform 2021-11-26 22:48:22 +01:00
quicksort Merge branch 'trunk' into integrate-linker 2021-09-23 21:12:40 -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.