Skip to content

Instantly share code, notes, and snippets.

@gladimdim
Created May 25, 2018 11:25
Show Gist options
  • Select an option

  • Save gladimdim/ac5ee84732e0646139c8e786b2d8b637 to your computer and use it in GitHub Desktop.

Select an option

Save gladimdim/ac5ee84732e0646139c8e786b2d8b637 to your computer and use it in GitHub Desktop.
let comparatorToString = comparator : string =>
switch (comparator) {
| LooseEqual => "=="
| LooseNotEqual => "!=="
| Equal => "==="
| Empty => ""
| NotEqual => "!=="
| Gt => ">"
| Gte => ">="
| Lt => "<"
| Lte => "<="
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment