roc/examples
2021-09-22 14:16:11 +02:00
..
benchmarks make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
cli more removal of roccallresult 2021-09-19 20:54:32 +02:00
effect remove callresult from cli examples 2021-09-19 18:34:42 +02:00
fib add comment to fib host.zig 2021-09-19 18:50:52 +02:00
hello-rust make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
hello-web provide roc_panic from javascript 2021-09-20 23:11:24 +02:00
hello-world Merge branch 'trunk' into direct-return-known-types 2021-09-21 23:01:09 +02:00
hello-zig make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
quicksort make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
.gitignore Add examples/cli 2021-08-21 20:54:15 -04: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.