Hello, World!
Printing Hello World to the command line using echo!:
Code
main! = |_| { echo!("Hello, World!\n") Ok({}) }
Output
Run this from the directory that has main.roc in it:
$ roc main.roc Hello, World!
Printing Hello World to the command line using echo!:
main! = |_| { echo!("Hello, World!\n") Ok({}) }
Run this from the directory that has main.roc in it:
$ roc main.roc Hello, World!