roc/examples
dependabot[bot] c83c57b7f5
Bump nix from 0.20.0 to 0.20.2 in /examples/breakout/platform
Bumps [nix](https://github.com/nix-rust/nix) from 0.20.0 to 0.20.2.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/v0.20.2/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.20.0...v0.20.2)

---
updated-dependencies:
- dependency-name: nix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-12 23:53:10 +00:00
..
algorithms Merge branch 'trunk' into gen-dev/quicksort 2022-07-16 19:05:15 -07:00
benchmarks s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
breakout Bump nix from 0.20.0 to 0.20.2 in /examples/breakout/platform 2022-08-12 23:53:10 +00:00
false-interpreter Update example lockfiles due to https://github.com/rtfeldman/roc/pull/3691 2022-08-10 20:24:19 -07:00
gui s/trunk/main/g 2022-08-12 15:24:37 -04:00
hello-world dealloc is wrong for static strings 2022-07-07 03:26:42 +02:00
interactive Re-enable and consolidate some CLI tests 2022-08-11 17:22:02 -04:00
platform-switching Update example lockfiles due to https://github.com/rtfeldman/roc/pull/3691 2022-08-10 20:24:19 -07:00
ruby-interop Add initial examples/ruby-interop 2022-08-11 17:15:07 -04: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.