Skip to content

Instantly share code, notes, and snippets.

@kennetpostigo
Last active June 22, 2018 22:56
Show Gist options
  • Save kennetpostigo/3015fa5d1d900cdba3116b15e21457d1 to your computer and use it in GitHub Desktop.
Save kennetpostigo/3015fa5d1d900cdba3116b15e21457d1 to your computer and use it in GitHub Desktop.
Reason BST Blog Post Function Usage
/*Single line function named square*/
let square = x => x * x;
/* Multiline function named logNSquare */
let logNSquare = x => {
let squared = x * x;
Js.log(squared);
squared;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment