Skip to content

Instantly share code, notes, and snippets.

@eyeccc
Created July 9, 2018 09:26
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 eyeccc/868450b630cec81f66d0f41f893e3f12 to your computer and use it in GitHub Desktop.
Save eyeccc/868450b630cec81f66d0f41f893e3f12 to your computer and use it in GitHub Desktop.
multiple if-else in reasonml
let myObj = Js.Dict.empty();
if (1 == 2) {
Js.Dict.set(myObj, "title", "myTitle");
};
if (true == true) {
Js.Dict.set(myObj, "id", 123);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment