roc/examples
ayazhafiz dca347a807
Revert "roc fmt"
This reverts commit 9e00527bc214ebbb13d9e05ff03ea24b1467e6dc.
2022-05-06 12:06:28 -04:00
..
algorithms update hosts with new string conventions 2022-03-13 00:16:21 +01:00
benchmarks Correctly generate type constraints for required symbols in platform 2022-05-06 12:06:27 -04:00
breakout feat(formatter): implement outdent formatting for multiline lists and records 2022-04-24 16:52:02 +01:00
false-interpreter Opaques take @ : %s/\$\([A-Z]\)/@\1/g 2022-04-25 12:26:38 -04:00
gui feat(formatter): implement outdent formatting for multiline lists and records 2022-04-24 16:52:02 +01:00
hello-world use exposed_generic in hello world examples 2022-03-12 14:42:14 +01:00
interactive Revert "roc fmt" 2022-05-06 12:06:28 -04: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.