Skip to content

Instantly share code, notes, and snippets.

@kennetpostigo
Created June 24, 2018 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennetpostigo/e6312e86bdc2115f5f7f2d135ddd020a to your computer and use it in GitHub Desktop.
Save kennetpostigo/e6312e86bdc2115f5f7f2d135ddd020a to your computer and use it in GitHub Desktop.
Reason BST Blog Post functions
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