Skip to content

Instantly share code, notes, and snippets.

@kennetpostigo
Created June 22, 2018 23:06
Show Gist options
  • Save kennetpostigo/48fda1b2e92384437249d85db33f8b9e to your computer and use it in GitHub Desktop.
Save kennetpostigo/48fda1b2e92384437249d85db33f8b9e to your computer and use it in GitHub Desktop.
Reason BST Blog Post compare
let compare = (f, s) =>
if (f < s) {
(-1);
} else if (f > s) {
1;
} else {
0;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment