roc/examples
Richard Feldman cbe0cfc865
Merge pull request #2688 from rtfeldman/gui-example-memory
fixed large memory consumption gui-example
2022-03-10 20:55:22 -05:00
..
algorithms Consolidate algorithm examples into one dir 2022-03-07 20:10:50 -07:00
benchmarks fixed the previous formatting change when inside longer pipeline 2022-03-09 14:07:52 +01:00
false-interpreter Merge branch 'trunk' of github.com:rtfeldman/roc into roc_fmt_fixes 2022-03-08 13:57:20 +01:00
gui Removed iced label 2022-03-09 18:45:44 +01:00
hello-world Remove unnecessary scripts 2022-03-07 21:12:11 -07:00
interactive fixed the previous formatting change when inside longer pipeline 2022-03-09 14:07:52 +01:00
.gitignore Simplify example ignores 2022-03-07 19:59:29 -07:00
README.md Rename hello examples from snake_case to camelCase for consistency 2022-03-07 21:10:19 -07:00

Examples

Took a look around in this folder; examples/benchmarks/ contains some larger examples.

Run examples as follows:

  1. Navigate to the examples directory

    cd examples
    
  2. Run "Hello, World!" example

    cargo run hello-world/helloWorld.roc
    

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