roc/examples
Richard Feldman e6fd0c62fd
Do an explicit cast that doesn't make sense
I don't know why this is what the compiler wants,
given that the docs say it shouldn't need a cast,
but this is for some reason what the compiler wants.
2022-10-16 18:43:03 -04:00
..
cli Do an explicit cast that doesn't make sense 2022-10-16 18:43:03 -04:00
gui Merge pull request #4252 from roc-lang/dependabot/cargo/examples/gui/breakout/platform/crossbeam-utils-0.8.12 2022-10-08 09:48:10 -05:00
parser provide more libc functions for the expect implementation 2022-10-12 20:59:18 +02:00
ruby-interop provide more libc functions for the expect implementation 2022-10-12 20:59:18 +02:00
static-site-gen Do an explicit cast that doesn't make sense 2022-10-16 18:43:03 -04:00
swiftui add missing new line 2022-10-07 17:11:51 -07:00
.gitignore Move helloWorld example up onto cli-platform 2022-09-11 22:22:50 -06:00
helloWorld.roc cli_run no macro re-write 2022-09-27 20:25:28 +02:00
README.md Move Roc CLI testing examples to crates/ 2022-09-11 22:32:15 -06:00

Examples

Run examples as follows:

  1. Navigate to this examples folder

    cd examples
    
  2. Run a particular example, such as Hello World:

    roc run hello-world/main.roc
    

crates/cli_testing_examples/benchmarks/ contains some larger examples.

Some examples like crates/cli_testing_examples/benchmarks/NQueens.roc require input after running. For NQueens, input 10 in the terminal and press enter.