Created
June 24, 2018 14:24
-
-
Save kennetpostigo/e6312e86bdc2115f5f7f2d135ddd020a to your computer and use it in GitHub Desktop.
Reason BST Blog Post functions
This file contains hidden or 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
let greet = name => "Hey " ++ name ++ "!"; /* returns string */ | |
let double = x => x * x; | |
/* Returns unit, signifying it isn't pure and has side-effects */ | |
let printGreet = name => { | |
let greeting = greet(name); | |
print_string(greeting); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment