roc/examples
2021-12-03 12:08:32 -08:00
..
benchmarks Move comment in RBTreeChk.roc to _also_ not cause an internal compilation :face-palm: 2021-12-03 12:08:32 -08:00
cli Add README to examples/cli 2021-11-29 09:24:58 -05:00
effect remove another instance of RocCallResult 2021-10-22 12:26:04 +02:00
false-interpreter chore: update examples that reference fromInt 2021-11-30 14:55:08 -05: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.