roc/examples
2022-10-04 12:28:33 -05:00
..
algorithms Merge branch 'trunk' into gen-dev/quicksort 2022-07-16 19:05:15 -07:00
benchmarks Rename Bytes' encoder/decoder to avoid stdlib collision 2022-09-21 12:29:07 -05:00
breakout Have Num.shift*By functions shift by a U8 2022-10-04 12:28:33 -05:00
false-interpreter Update roc files to use new opaque bools 2022-09-20 14:42:04 -05:00
gui Have Num.shift*By functions shift by a U8 2022-10-04 12:28:33 -05:00
hello-world Move parser to Arg.roc 2022-09-14 11:26:47 -05:00
interactive Merge pull request #4091 from roc-lang/env-read 2022-10-02 00:19:22 -07:00
parser Format 2022-09-30 13:43:33 -05:00
platform-switching Fix type mismatch in exit code 2022-09-19 21:12:48 -04:00
ruby-interop Add language to all fenced code blocks 2022-09-09 01:12:31 -06:00
static-site-gen Fix type mismatch in exit code 2022-09-19 21:12:48 -04:00
swiftui Add SwiftUI demo 2022-08-28 13:34: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.