roc/examples
Jan Van Bruggen 1272503bec
Merge pull request #3943 from sandprickle/move-examples-3912
Move Platform Examples (3912)
2022-09-05 10:38:24 -06:00
..
algorithms Merge branch 'trunk' into gen-dev/quicksort 2022-07-16 19:05:15 -07:00
benchmarks use timer in the benchmark platform 2022-08-26 18:28:40 +02:00
breakout Merge pull request #3770 from roc-lang/dependabot/cargo/examples/breakout/platform/nix-0.20.2 2022-08-22 22:54:12 +02:00
false-interpreter Update example lockfiles due to https://github.com/rtfeldman/roc/pull/3691 2022-08-10 20:24:19 -07:00
gui Add safe layout reprs and safety comments about layout 2022-08-13 03:49:12 -04:00
hello-world dealloc is wrong for static strings 2022-07-07 03:26:42 +02:00
interactive Link to the CLI platform docs in examples README 2022-09-03 21:11:21 -04:00
platform-switching move WebAssembly example 2022-08-31 14:20:25 -04:00
ruby-interop Lower minimum Ruby version in ruby-interop example 2022-08-16 14:02:31 -04:00
static-site-gen get static-site-gen working with surgical linker 2022-08-31 09:00:45 +01: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.