roc/examples
2022-08-07 13:28:03 +02:00
..
algorithms Merge branch 'trunk' into gen-dev/quicksort 2022-07-16 19:05:15 -07:00
benchmarks Correctly use module name in linked functions 2022-07-21 09:02:04 -04:00
breakout changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
false-interpreter changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
gui changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
hello-world dealloc is wrong for static strings 2022-07-07 03:26:42 +02:00
interactive changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
platform-switching Merge remote-tracking branch 'origin/trunk' into roc-std-platform 2022-08-07 13:28:03 +02:00
.gitignore Simplify example ignores 2022-03-07 19:59:29 -07:00
README.md fix typo 2022-06-15 12:08:06 -04: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
    

examples/benchmarks/ contains some larger examples.

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