roc/examples
2022-07-17 22:00:16 +01:00
..
algorithms roc format examples 2022-07-13 23:16:09 -04:00
benchmarks Merge remote-tracking branch 'origin/trunk' into outdent-infix 2022-07-16 16:08:36 -04:00
breakout roc format examples 2022-07-13 23:16:09 -04:00
false-interpreter roc format examples 2022-07-13 23:16:09 -04:00
gui roc format examples 2022-07-13 23:16:09 -04:00
hello-world dealloc is wrong for static strings 2022-07-07 03:26:42 +02:00
interactive Workaround a compile error with defaultRequest by.. not using it! 2022-07-17 22:00:16 +01:00
platform-switching dealloc is wrong for static strings 2022-07-07 03:26:42 +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.