Created
June 24, 2018 14:23
-
-
Save kennetpostigo/eaf441ac000f04d29e0210ea6922c28a to your computer and use it in GitHub Desktop.
Reason BST Blog Post primitives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* String must use double quotes */ | |
let myString = "Hello World!"; | |
let myInt = 5; | |
/* Float doesn't have to have a trailing 0 */ | |
let myFloat = 5.; | |
/* Char must use single quotes */ | |
let myChar = 'c'; | |
let myBool = true; | |
/* The syntax for unit is (), by itself */ | |
let myUnit = (); | |
/* This fn is effectful and returns unit, it prints to stdin */ | |
print_string(myString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment