Hello World in Roc
Every programming journey starts with Hello World. Let’s write our first Roc program.
The Code
Create a file named main.roc:
app [main!] { cli: platform …Read more →Every programming journey starts with Hello World. Let’s write our first Roc program.
Create a file named main.roc:
app [main!] { cli: platform …Read more →Roc is a purely functional language, and like its cousins Elm and Haskell, it has no mutable variables. Every binding is a permanent name for a value — once name = "Alice" is written, name …
Operators are the symbols that combine values into expressions: adding numbers, comparing them, and chaining boolean conditions. Because Roc is a purely functional language, an operator is really just …
Read more →Showing 1–3 of 3 posts (page 1 of 1)