roc/examples
2021-09-18 22:56:33 +01:00
..
benchmarks use zig allocator, not libc, in host 2021-09-10 10:15:41 +02:00
cli remove debug prints 2021-08-27 00:05:13 +02:00
effect fix closure weirdness (skipping or infinite looping) 2021-09-13 22:50:48 +02:00
fib make gen tests expose mainForHost like LLVM backend 2021-09-16 21:41:23 +02:00
hello-rust add roc_panic to all hosts 2021-08-16 22:46:00 +02:00
hello-web Create hello-web example 2021-09-18 22:56:33 +01:00
hello-world Drop some more references to needing C++ 2021-08-29 16:59:15 -04:00
hello-zig Drop some more references to needing C++ 2021-08-29 16:59:15 -04:00
quicksort use zig allocator, not libc, in host 2021-09-10 10:15:41 +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.